Part Number Hot Search : 
FG4103 F9530 02M92VCA N5415 AM500 TGA4953 2500ET IE1203S
Product Description
Full Text Search
 

To Download HSP50214B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  tm 3-1 HSP50214B programmable downconverter the HSP50214B programmable downconverter converts digitized if data into ?tered baseband data which can be processed by a standard dsp microprocessor. the programmable downconverter (pdc) performs down conversion, decimation, narrowband low pass ?tering, gain scaling, resampling, and cartesian to polar coordinate conversion. the 14-bit sampled if input is down converted to baseband by digital mixers and a quadrature nco, as shown in the block diagram. a decimating (4 to 32) ?th order cascaded integrator-comb (cic) ?ter can be applied to the data before it is processed by up to 5 decimate-by-2 halfband ?ters. the halfband ?ters are followed by a 255-tap programmable fir ?ter. the output data from the programmable fir ?ter is scaled by a digital agc before being re-sampled in a polyphase fir ?ter. the output section can provide seven types of data: cartesian (i, q), polar (r, ), ?tered frequency (d / dt), timing error (te), and agc level in either parallel or serial format. features up to 65 msps front-end processing rates (clkin) and 55mhz back-end processing rates (procclk) clocks may be asynchronous processing capable of >100db sfdr up to 255-tap programmable fir overall decimation factor ranging from 4 to 16384 output samples rates to ? 12.94 msps with output bandwidths to ? 982khz lowpass 32-bit programmable nco for channel selection and carrier tracking digital resampling filter for symbol tracking loops and incommensurate sample-to-output clock ratios digital agc with programmable limits and slew rate to optimize output signal resolution; fixed or auto gain adjust serial, parallel, and fifo 16-bit output modes cartesian to polar converter and frequency discriminator for afc loops and demodulation of am, fm, fsk, and dpsk input level detector for external i.f. agc support applications single channel digital software radio receivers base station rxs: amps, na tdma, gsm, and cdma compatible with hsp50210 digital costas loop for psk reception evaluation platform available block diagram ordering information part number temp. range ( o c) package pkg. no. HSP50214Bvc 0 to 70 120 ld mqfp q120.28x28 HSP50214Bvi -40 to 85 120 ld mqfp q120.28x28 halfband polyphase fir and filters input section level detect carrier 5 th cartesian to output formatter discriminator agc loop filter mag. phase resampling i out q out freq agc ? timing error in(13:0) refclk serouta seroutb aout(15:0) bout(15:0) control c(7:0) microprocessor read/write gain (2:0) halfband filters filter cic order halfband filters polar coordinate converter halfband polyphase fir and filters nco nco cof sof adj clkin procclk 255-tap fir filter 255-tap fir filter 5 th filter cic order data sheet may 2000 file number 4450.3 caution: these devices are sensitive to electrostatic discharge; follow proper ic handling procedures. 1-888-intersil or 321-724-7143 | intersil and design is a trademark of intersil corporation. | copyright intersil corporation 2000
3-2 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 figure 1. functional block diagram of the HSP50214B programmable downconverter . . . . . . . . . . . . . . . . . . . . . . . . 3-7 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 pdc applications overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 fdm based standards and applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 tdm based standards and applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 cdma based standards and applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 traditional modulation formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 resampling and interpolation filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 14-bit input and processing resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 multiple chip synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 figure 2. synchronization circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 input section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 interpolation example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 input level detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 figure 3. block diagram of the input section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 figure 4. statement of the problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 figure 5. block diagram of the interpolation approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 figure 6. interpolation spectrum: interpolate by 8 the input data with zero stuffing; sample at rate r = fs . . . . . 3-12 figure 7. alias profile and the 85db dynamic range bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 figure 8. processor based external if agc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 figure 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 figure 10. input threshold detector bit weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 figure 11. signal processing within level detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 carrier synthesizer/mixer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 figure 12. block diagram of nco section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 figure 13. serial input timing for cof and sof inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 figure 14. holding registers load sequence for cof and sof serial offset frequency data . . . . . . . . . . . . . . . . . . 3-15 cic decimation filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 figure 15. cic shift gain values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 cic gain calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 using the input gain adjust control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 halfband decimating filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 figure 16. cic filter bit weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 figure 17. block diagram of halfband filter section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 figure 18. halfband filter frequency response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 figure 19. halfband filter alias considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18 examples of procclk rate calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19 255-tap programmable fir filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19 figure 20. demonstration of different types of digital fir filters configured in the programmable downconverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20 automatic gain control (agc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20 figure 21. agc multiplier linear and db transfer function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21 figure 22. agc gain control transfer function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21 figure 23. agc block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-23 re-sampler/halfband filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25 figure 24a. polyphase resampler filter broadband frequency response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25 figure 24b. polyphase resampler filter pass band frequency response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25 figure 24c. polyphase resampler filter expanded resolution passband frequency response . . . . . . . . . . . . . . . . . 3-28 figure 25. generating data ready pulses for output data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28 timing nco . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28 figure 26. timing nco block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 figure 27. timing error generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 figure 27a. timing error application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 HSP50214B
3-3 cartesian to polar converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 figure 28. phase bit mapping of coordinate converter output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30 frequency discriminator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31 figure 29. frequency discriminator block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31 output section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 parallel direct output port mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 data transitions:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32 figure 30. parallel output block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3- 32 data ready signal assertion rate: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 figure 31. d a t ard y waveforms when i (read data) is selected as aout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 figure 32. datardy waveforms when |r| (magnitude) is selected as aout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 figure 33. datardy waveforms when f (frequency) is selected as aout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33 serial direct output port mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34 figure 34. serial output formatter block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35 serial output con?uration example 1: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36 serial output con?uration example 2: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36 figure 35. example 2 serial output data stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37 figure 36. valid sersync configuration options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37 buffer ram output port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37 fifo operation via 16-bit processor interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38 figure 37. 16-bit microprocessor interface buffer ram mode block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38 figure 38. interface between a 16-bit microprocessor and pdc in fifo buffer ram mode . . . . . . . . . . . . . . . . . . . . . . 3-39 figure 39. timing diagram for pdc in fifo mode with outputs i, q, and frequency sent to aout(7:0) and bout(7:0) . . 3-39 figure 40. fifo register operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-40 fifo operation via 8-bit processor interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-40 figure 41. 8-bit microprocessor interface buffer ram mode block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41 figure 42. ram load sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41 snap shot operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41 figure 43. snap shot sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41 avoiding timing pitfalls when using the buffer ram output port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42 figure 44. avoiding false intrrp assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42 microprocessor write section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42 figure 45. loading the control registers with 32-bit control words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43 microprocessor read section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43 figure 46. reading the control registers using a latch code equal to a 5, a read address and a read code . . . . 3-43 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44 composite filter response example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44 figure 47. receive signal frequency spectrum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44 rf/if considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44 pdc con?uration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45 figure 48a. cic filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 figure 48b. hb3 filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 figure 49a. hb5 filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 figure 49b. 255 fir tap filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 figure 49c. composite filter response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 figure 49d. pdc filter frequency spectrums example (normalized to same scale) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 con?uration control word de?itions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-47 ac test load circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-59 waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 50. timing relative to wr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 51. timing relative to rd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 52. output rise and fall times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 53. timing relative to clkin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 54. output enable/disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 55. timing relative to procclk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 figure 56. refclk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60 HSP50214B pag e
3-4 pinout 120 lead mqfp top view 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 89 90 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 91 97 98 99 100 92 93 94 95 96 106 107 108 109 110 111 101 102 103 104 105 117 118 119 120 112 113 114 115 116 nc bout3 bout2 bout1 oebl bout0 bout4 gnd procclk v cc msynci gnd bout7 bout6 bout5 gnd msynco gnd bout15 bout14 v cc nc bout12 bout11 bout10 bout9 bout8 bout13 oebh d a t ard y syncout intrrp wr rd gnd c7 c6 nc c5 c4 v cc c3 c2 c1 nc c0 a2 a1 a0 gnd sel2 sel1 sel0 gnd serouta seroutb sersync ser oe serclk v cc syncin2 syncin1 cof gainadj0 cofsync gnd sof sofsync v cc v cc in0 in1 gnd in3 clkin gnd nc eni gainadj2 in4 in8 in9 in10 gnd in7 nc in6 in5 in2 oeal gnd aout0 aout1 aout2 aout3 aout4 nc v cc aout5 aout6 aout7 aout8 aout9 nc gnd aout10 aout11 aout12 in11 aout13 aout14 aout15 oeah gnd refclk v cc agcgnsel in13 in12 gainadj1 32 HSP50214B
3-5 pin descriptions name type description v cc - positive power supply voltage. gnd - ground. clkin i input clock. this clock should be a multiple of the input sample rate. all input section processing occurs on the rising edge of clkin. the frequency of clkin is designated f clkin . in(13:0) i input data. the format of the input data may be set to offset binary or 2s complement. in13 is the msb (see control word 0). eni i input enable. active low. this pin enables the input to the part in one of two modes, gated or interpolated (see con- trol word 0). in gated mode, one sample is taken per clkin when eni is asserted. the input sample rate is desig- nated f s , which can be different from f clkin when eni is used. gainadj(2:0) i gainadj input. adds an offset to the gain via the shifter following the mixer. gainadj value is added to the shift code from the microprocessor ( p) interface. the shift code is saturated to a maximum code of f. the gain is offset by (6db)(gainadj); (000 = 0db gain adjust; 111 = 42db gain adjust) gainadj2 is the msb. see ?sing the input gain adjust control signals?section. procclk i processing clock. procclk is the clock for all processing functions following the cic section. processing is per- formed on procclks rising edge. all output timing is derived from this clock. note: this clock may be asynchronous to clkin. agcgnsel i agc gain select. this pin selects between two agc loop gains. this input is setup and held relative to procclk. gain setting 1 is selected when agcgnsel = 1. cof i carrier offset frequency input. this serial input pin is used to load the carrier offset frequency into the carrier nco (see serial interface section). the offset may be 8, 16, 24, or 32 bits. the setup and hold times are relative to clkin. this input is compatible with the output of the hsp50210 costas loop [1]. cofsync i carrier offset frequency sync. this signal is asserted one clk before the most signi?ant bit (msb) of the offset frequency word (see serial interface section). the setup and hold times are relative to clkin. this input is com- patible with the output of the hsp50210 costas loop [1]. sof i re-sampler offset frequency input. this serial input pin is used to load the offset frequency into the re-sampler nco (see serial interface section). the offset may be 8, 16, 24, or 32 bits. the setup and hold times are relative to procclk. this input is compatible with the output of the hsp50210 costas loop [1]. sofsync i re-sampler offset frequency sync. this signal is asserted one clk before the msb of the offset frequency word (see serial interface section). the setup and hold times are relative to procclk. this input is compatible with the output of the hsp50210 costas loop [1]. aout(15:0) o parallel output bus a. two parallel output modes are available on the HSP50214B. the ?st is called the direct out- put port, where the source is selected through control word 20 (see the microprocessor write section) and comes directly from the output mux section (see output control section). the most signi?ant byte of aout always out- puts the most signi?ant byte of the parallel direct output port whose data type is selected via p interface. aout15 is the msb. in this mode, the aout(15:0) bus is updated as soon as data is available. d a t ard yisas- serted to indicate new data. for this mode, the output choices are: i, |r|, or f. the format is 2s complement, except for magnitude, which is unsigned binary with a zero as the msb. the second mode for parallel data is called the buffer ram output port. the buffer ram output port acts like a fifo for blocks of information called data sets. within a data set is i, q, magnitude, phase, and frequency informa- tion; a data type is selected using sel(2:0). up to 7 data sets are stored in the buffer ram output port. the lsbytes of the aout and bout busses form the 16 bits for the buffered output mode and can be used for buffered mode while the msbytes are outputting data in the direct output mode. for this mode, the output formats are the same as the direct output port mode. bout(15:0) o parallel output bus b. two parallel output modes are available on the HSP50214B. the ?st is called the direct out- put port, where the source is selected through control word 20 (see the microprocessor write section) and comes directly from the output mux section (see output control section). the most signi?ant byte of bout always out- puts the most signi?ant byte of the parallel direct output port whose data type is selected via p interface. bout15 is the msb. in this mode, the bout(15:0) bus is updated as soon as data is available. d a t ard y is as- serted to indicate new data. for this mode, the output choices are: q, , or |r|. the format is 2s complement, except for magnitude which is unsigned binary with a zero as the msb. the second mode for parallel data is called the buffer ram output port. the buffer ram output port acts like a fifo for blocks of information called data sets. within a data set is i, q, magnitude, phase, and frequency informa- tion; a particular information is selected using sel(2:0). up to 7 data sets is stored in the buffer ram output port. the least signi?ant byte of bout can be used to either output the least signi?ant byte of the b parallel direct output port or the least signi?ant byte of the buffer ram output port. see output section. for this mode the output formats are the same as the direct output port mode. HSP50214B
3-6 d a t ard y o output strobe signal. active low. indicates when new data from the direct output port section is available. da- tardy is asserted for one procclk cycle during the ?st clock cycle that data is available on the parallel out bus- ses. see output section. oeah i output enable for the msbyte of the aout bus. active low. the aout msbyte outputs are three-stated when oeah is high. oeal i output enable for the lsbyte of the aout bus. active low. the aout lsbyte outputs are three-stated when oeal is high. oebh i output enable for the msbyte of the bout bus. active low. the bout msbyte outputs are three-stated when oebh is high. oebl i output enable for the lsbyte of the bout bus. active low. the bout lsbyte outputs are three-stated when oebl is high. sel(2:0) i select address is used to choose which information in a data set from the buffer ram output port is sent to the least signi?ant bytes of aout and bout. sel2 is the msb. intrrp o interrupt output. active low. this output is asserted for 8 procclk cycles when the buffer ram output port is ready for reading. serouta o serial output bus a data. i, q, magnitude, phase, frequency, timing error and agc information can be sequenced in programmable order. see output section and microprocessor write section. seroutb o serial output bus b data. contents may be related to serouta. i, q, magnitude, phase, frequency, timing error and agc information can be sequenced in programmable order. see output section and microprocessor write section. serclk o output clock for serial data out. derived from procclk as given by control word 20 in the microprocessor write section. sersync o serial output sync signal. serves as serial data strobes. see output section and microprocessor write section. ser oe i serial output enable. when high, the serouta, seroutb, serclk, and sersync signals are set to a high impedance. c(7:0) i/o processor interface data bus. see microprocessor write section. c7 is the msb. a(2:0) i processor interface address bus. see microprocessor write section. a2 is the msb. wr i processor interface write strobe. c(7:0) is written to control words selected by a(2:0) in the programmable down converter on the rising edge of this signal. see microprocessor write section. rd i processor interface read strobe. c(7:0) is read from output or status locations selected by a(2:0) in the pro- grammable down converter on the falling edge of this signal. see microprocessor read section. refclk i reference clock. used as an input clock for the timing error detector. the timing error is computed relative to ref- clk. refclk frequency must be less than or equal to procclk/2. msynco o multiple chip sync output. provided for synchronizing multiple parts when clkin and procclk are asynchro- nous. msynco is the synchronization signal between the input section operating under clkin and the back end processing operating under procclk. this output sync signal from one part is connected to the msynci signal of all the HSP50214Bs. msynci i multiple chip sync input. the msynci pin of all the parts should be tied to the msynco of one part. note: msynci must be connected to an msynco signal for operation. syncin1 i cic decimation/carrier nco update sync. can be used to synchronize the cic section, carrier nco update, or both. see the multiple chip synchronization section and control word 0 in the microprocessor write section. active high. syncin2 i fir/timing nco update/agc gain update sync. can be used to synchronize the fir, timing nco update, agc gain update, or any combination of the above. see the multiple chip synchronization section and control words 7, 8, and 10 in the microprocessor write section. active high. syncout o strobe output. this synchronization signal is generated by the p interface for synchronizing multiple parts. can be generated by proclk or clkin (see control word 0 and control word 24 in the microprocessor write section). active high. pin descriptions (continued) name type description HSP50214B
3-7 i 2 q 2 + q i ---- ?? ?? atan aout(15:0) bout(15:0) t d d level limit loop filter error detect nco (symbol tracking) mixer decimate from 4-32 5th order cic 0 to 5 halfband filter; decimation up to 32 255-tap programmable fir filter agc re-sampler cartesian to polar discriminator interpolate by 2/4 halfband (decimate up to 16) in(13:0) serouta seroutb c(7:0) control section output section cic, halfband filter, and fir sections input section synchronization section level detect section digital agc section discriminator section re-sampler/interpolation halfband section cof sof polyphase filter clkin procclk cofsync sofsync a(2:0) wr rd refclk input section gainadj(2:0) agcgnsel eni (carrier tracking) msynci msynco syncout syncin1 syncin2 microprocessor read/write sel(2:0) serclk sersync ser oe oeah oeal oebh oebl carrier nco sections intrrp cos sin difference timing error i q agcout to output formatter agcout a and microprocessor interface detect nco clkin procclk to processor interface shift shift 63-tap programmable fir filter intrrp a figure 1. functional block diagram of the HSP50214B programmable downconverter output formatter chip circuitry synchronization front end circuitry synchronization back end circuitry synchronization polyphase filter timing nco d a t ard y (c o = 1; c n = 0) (c o = 1; c n = 0) filters HSP50214B
3-8 functional description the HSP50214B programmable downconverter (pdc) is an agile digital tuner designed to meet the requirements of a wide variety of communications industry standards. the pdc contains the processing functions needed to convert sampled if signals to baseband digital samples. these functions include lo generation/mixing, decimation ?tering, programmable fir shaping/bandlimiting ?tering, resampling, automatic gain control (agc), frequency discrimination and detection as well as multi-chip synchronization. the HSP50214B interfaces directly with a dsp microprocessor to pass baseband and status data. a top level functional block diagram of the HSP50214B is shown in figure 1. the diagram shows the major blocks and multiplexers used to recon?ure the data path for various architectures. the HSP50214B can be broken into 13 sections: synchronization, input, input level detector, carrier mixer/numerically control oscillator (nco), cic decimating filter, halfband decimating filter, 255-tap programmable fir filter, automatic gain control (agc), re-sampler/halfband filter, timing nco, cartesian to polar converter, discriminator, and output sections. all of these sections are con?ured through a microprocessor interface. the HSP50214B has three clock inputs; two are required and one is optional. the input level detector, carrier nco, and cic decimating filter sections operate on the rising edge of the input clock, clkin. the halfband filter, programmable fir filter, agc, re-sampler/halfband filters, timing nco, discriminator, and output sections operate on the rising edge of procclk. the third clock, refclk, is used to generate timing error information. note: all of the clocks may be asynchronous. pdc applications overview this section highlights the motivation behind the key programmable features from a communications system level perspective. these motivations will be defined in terms of ability to provide dsp processing capability for specific modulation formats and communication applications. the versatility of the programmable downconverter can be intimidating because of the many control words required for chip configuration. this section provides system level insight to help allay reservations about this versatile dsp product. it should help the designer capitalize on the greatest feature of the pdc - versatility through programmability . it is this feature, when fully understood, that brings the greatest return on design investment by offering a single receiver design that can process the many waveforms required in the communications marketplace. fdm based standards and applications table 1 provides an overview of some common frequency division multiplex (fdm) base station applications to which the pdc can be applied. the pdc provides excellent selectivity for frequency division multiple access (fdma) signals. this high selectivity is achieved with 0.012hz resolution frequency control of the nco and the sharp filter responses capable with a 255-tap, 22-bit coefficient fir filter. the 16-bit resolution out of the cartesian to polar coordinate converter are routed to the frequency detector, which is followed by a 63-tap, 22-bit coefficient fir filter structure for facilitating fm and fsk detection. the 14-bit input resolution is the smallest bit resolution found throughout the conversion and filtering sections, providing excellent dynamic range in the dsp processing. a unique input gain scaler adds an additional 42db of range to the input level variation, to compensate for changes in the analog rf front end receive equipment. synchronization circuitry allows precise timing control of the base station reconfiguration for all receive channels simultaneously. portions of this table were corroborated with reference [2]. tdm based standards and applications table 2 provides an overview of some common time division multiplexed (tdm) base station applications to which the pdc can be applied. for time division multiple access (tdma) applications, such as north american tdma (is136), where 30khz is the received band of interest for the pcs basestation, the pdc offers 0.012hz frequency resolution in downconversion in addition to = 0.35 matched (programmable) filtering capability. the /4 dpsk modulation can be processed using the pdc cartesian to polar coordinate converter and d /dt detector circuitry or by table 1. cellular phone base station applica- tions using fdma standard amps (is-91) mcs-l1 mcs-l2 nmt- 400 nmt- 900 c450 etacs ntacs rx band (mhz) 824-849 925-940 453-458 890-915 451-456 871-904 915-925 channel bw (khz) 30 25.0 12.5 25 12.5 20.0 10.0 25.0 12.5 # traffic channels 832 600 1200 200 1999 222 444 1240 800 voice modula- tion fm fm fm fm fm peak deviation (khz) 12 5 5 4 9.5 control modula- tion fsk fsk fsk fsk fsk peak deviation (khz) 8 4.5 3.5 2.5 6.4 control channel rate (kbps) 10 0.3 1.2 5.3 8 HSP50214B
3-9 processing the i/q samples in the dsp p. the pdc provides the ability to change the received signal gain and frequency, synchronous with burst timing. the synchronous gain adjustment allows the user to measure the power of the signal at the a/d at the end of a burst, and synchronously reload that same gain value at the arrival of the next user burst. for applications other than cellular phones (where the preambles are not changed), the pdc frequency discriminator output can be used to obtain correlation on the preamble pattern to aid in burst acquisition. several applications are combinations of frequency and time domain multiple access schemes. for example, gsm is a tdma signal that is frequency hopped. the individual channels contain gaussian msk modulated signals. the pdc again offers the 0.012hz tuning resolution for de- hopping the received signal. the combination of halfband and 256-tap programmable, 22-bit coef?ient fir ?ters readily performs the necessary matched ?tering for demodulation and optimum detection of the gmsk signals. cdma based standards and applications for code division multiple access (cdma) type signals, the pdc offers the ability to have a single wideband rf front end, from which it can select a single spread channel of interest. the synchronization circuitry provides for easy control of multiple pdc for applications where multiple received signals are required, such as base-stations. in is-95 cdma, the receive signal bandwidth is approximately 1.2288mhz wide with many spread spectrum channel in the band. the pdc supplies the downconversion and ?tering required to receive a single rf channel in the presence of strong adjacent interference. multiple pdcs would be sourced from a single receive rf chain, each processing a different receive frequency channel. the despreader would usually follow the pdc. in some very speci? applications, with short, ?ed codes, the ?tering and despreading may be possible with innovative use of the programmable, 22-bit coef?ient fir ?ter. the pdc offers 0.012hz resolution on tuning to the desired receive channel and excellent rejection of the portions of the band not being processed, via the halfband and 255-tap programmable, 22- bit coef?ient fir ?ter. traditional modulation formats am, ask, fm and fsk the pdc has the capability to fully demodulate am and fm modulated waveforms. the pdc outputs 15 bits of amplitude or 16 bits of frequency for these modulation formats. the fm discriminator has a 63-tap programmable, 22-bit coefficient fir filter for additional signal conditioning of the fm signal. digital versions of these formats, ask and fsk are also readily processed using the pdc. just as in the am modulated case, ask signals will use 15-bit magnitude output of the cartesian to polar coordinate converter. multi-tone fsk can be processed several ways. the frequency information out of the discriminator can be used to identify the received tone, or the filter can be used to identify and power detect a specific tone of the received signal. amps is an example of an fm application. pm and psk the pdc provides the downconversion, demodulation, matched ?tering and coordinate conversion required for demodulation of pm and psk modulated waveforms. these modulation formats will require external carrier and symbol timing recovery loop ?ters to complete the receiver design. the pdc was designed to interface with the hsp50210 digital costas loop to implement the carrier phase and symbol timing recovery loop ?ters (for continuous psk signals - not burst). digital modulation formats that combine amplitude and phase for symbol mapping, such as m-ary qam, can also be downconverted, demodulated, and matched ?tered. the received symbol information is provided with 16 bits of resolution in either cartesian or polar coordinates to facilitate remapping into bits and to recover the carrier phase. external symbol mapping and carrier recovery loop filtering is required for this waveform. resampling and interpolation filters two key features of the resampling fir ?ter are that the re- sampler ?ter allows the output sample rate to be programmed with millihertz resolution and that the output sample rate can be phase locked to an independent separate clock. the re-sampler frees the front end sampling clocks from having to be synchronous or integrally related in rate to the baseband output. the asynchronous relationship between front end and back end clocks is critical in applications where isdn interfaces drive the baseband interfaces, but the channel sample rates are not related in any way. the interpolation halfband ?ters can increase the rate of the output when narrow frequency bands are being processed. the increase in output rate allows maximum use of the programmable fir while preserving time resolution in the baseband data. table 2. cellular basestation applications using tdma standard gsm pcn is-54 type cellular cellular cellular basestation rx band (mhz) 935-960 1805-1880 824-849 channel bw (khz) 200 200 30 # traffic channels 8163 voice modulation gmsk gmsk /4 dqpsk channel rate (kbps) 270.8 270.8 48.6 control modulation gmsk gmsk /4 dqpsk channel rate (kbps) 270.8 270.8 48.6 HSP50214B
3-10 14-bit input and processing resolution the pdc maintains a minimum of 14 bits of processing resolution through to the output, providing over 84db of dynamic range. the 18 bits of resolution on the internal references provide a spurious ?or that is better than 98dbc. furthermore, the pdc provides up to 42db of gain scaling to compensate for any change in gain in the rf front end as well as up to 96db of gain in the internal pdc agc. this gain maximizes the output resolution for small signals and compensates for changes in the rf front end gain, to handle changes in the incoming signal. summary the greatest feature of the pdc is its ability to be recon?ured to process many common standards in the communications industry. thus, a single hardware element can receive and process a wide variety of signals from pcs to traditional cellular, from wireless local loop to satcom. the high resolution frequency tuning and narrowband ?tering are instrumental in almost all of the applications. multiple chip synchronization multiple pdcs are synchronized using a master/slave con?uration. one part is responsible for synchronizing the front end internal circuitry using clkin while another part is responsible for synchronizing the backend internal circuitry using procclk. the pdc is synchronized with other pdcs using ?e control lines: syncout, syncin1, syncin2, msynco, and msynci. figure 2 shows the interconnection of these ?e signals for multiple chip synchronization where different sources are used for clkin and procclk. syncout for pdc b should be set to be synchronous with clkin (control word 0, bit 3 = 0. see the microprocessor write section). syncout for pdc b is tied to the syncin1 of all the pdcs. the syncin1 can be programmed so that the carrier nco and/or the 5th order cic filter of all pdcs can be synchronously loaded/updated using syncin1. see control word 0, bits 19 and 20 in the microprocessor write section for details. syncout for one of the pdcs other than pdc b, should be set for procclk (bit 3 = 1 in control word 0). this output signal is tied to the syncin2 of all pdcs. the syncin2 can be programmed so that the agc updates its accumulator with the contents in the master registers (control word 8, bit 29 in the microprocessor write section). syncin2 is also used to load or reset the timing nco using bit 5, control word 11. the halfband and fir ?ters can be reset on syncin2 using control word 7, bit 21. the msynco of one of the pdcs is then used to drive the msynci of all the pdcs (including its own). for application con?urations where clkin and procclk have the same source, syncin1 and syncin2 can be tied together. however, if different enabling is desired for the front end and backend processing of the pdcs, these signals can still be controlled independently. in the HSP50214B, the control word 25 reset signal has been extended so that the front end reset is 10 clkin periods wide and the back end reset is 10 procclk periods wide. this guarantees that no enables will be caught in the pipelines. in addition, the syncin1 internal reset signal, which is enabled by setting control word 7, bit 21 = 1, has been extended to 10 cycles. in summary, syncin1 is used to update carrier phase offset, update carrier center frequency, reset cic decimation counters and reset the carrier nco (clear the feedback in the nco). syncin2 is used to reset the hb ?ter, fir ?ter, re-sampler/hb state machines and the output fifo, load a new gain into the agc and load a new re-sampler nco center frequency and phase offset. input section the block diagram of the input controller is provided in figure 3. the input can support offset binary or twos complement data and can be operated in gated or interpolated mode (see control word 0 from the microprocessor write section). the gated mode takes one sample per clock when the input enable (eni) is asserted. the gated mode allows the user to synchronize a low speed sampling clock to a high speed clkin. the interpolated mode allows the user to input data at a low sample rate and to zero-stuff the data prior to ?tering. this zero stuf?g effectively interpolates the input signal up to the rate of the input clock (clkin). this interpolated mode allows the part to be used at rates where the sampling frequency is above the maximum input rate range of the halfband ?ter section, and where the desired output bandwidth is too wide to use a cascaded integrator comb (cic) ?ter without signi?antly reducing the dynamic range. HSP50214B msynco msynci syncout syncin2 syncin1 pdc a is the master sync through mso. pdc a con?ures the procclk sync through syncin2. pdc b con?ures the clkin sync through syncin1. all other msi all other syncin2 all other syncin1 ab figure 2. synchronization circuit HSP50214B msynco msynci syncout syncin2 syncin1 (master syncin2) (master syncin1) HSP50214B
3-11 see figures 4-7 for an interpolated input example, detailing the associated spectral results. interpolation example: the speci?ations for the interpolated input example are: clkin = 40mhz input sample rate = 5 msps procclk = 28mhz interpolate by 8, decimate by 10 desired 85db dynamic range output bandwidth = 500khz input level detector the input level detector section measures the average magnitude error at the pdc input for the microprocessor by comparing the input level against a programmable threshold and then integrating the result. it is intended to provide a gain error for use in an agc loop with either the rf/if or a/d converter stages (see figure 8). the agc loop includes input level detector, the microprocessor and an external gain control amplifier (or attenuator). the input samples are rectified and added to a threshold programmed via the microprocessor interface, as shown in figure 9. the bit weighting of the data path through the input threshold detector is shown in figure 10. the threshold is a signed number, so it should be set to the inverse of the desired input level. the threshold can be set to zero if the average input level is desired instead of the error. the sum of the threshold and the absolute value of the input is accumulated in a 32-bit accumulator. the accumulator can handle up to 2 18 samples without overflow. the integration time is controlled by an 18-bit counter. the integration counter preload (icprel) is programmed via the microprocessor interface through control word 1. only the upper 16 bits are programmable. the 2 lsbs are always zero. control word 1, bits 29-14 are programmed to: where n is the desired integration period, de?ed as the number of input samples to be integrated. n must be a multiple of 4: [0, 4, 8, 12, 16 .... , 2 18 ]. icprel n () 41 + ? = (eq. 1) figure 3. block diagram of the input section without interpolation, the cic bypass path exceeds the hb/fir ?ter input sample rate and the cic ?ter path will not yield the desired 85db dynamic range band width of 500khz. figure 4. statement of the problem figure 5. block diagram of the interpolation approach input format in(13:0) input_fmt ? eni level detect reg reg input_mode ? nco ?? reg reg delay 3 delay 3 gainadj(2:0) shift cic control word 0 control logic control word 1 clkin ? controlled via microprocessor interface. ?? see nco section for more details. input_thresh ? intg_inteval ? intg_mode ? input_thresh ? intg_mode ? intg_inteval ? interp ? input format ? bypass ? mux input level detector ? status (0) ? limit 4 3 en 4 14 14 18 18 15 15 cic hb/fir filter 5mhz 500khz = 85db bandwidth mux max. f s = 4mhz min. r = 4 bypass procclk = 28mhz (exceeded in (not achieved with cic filter bypass path) filter path) clkin = 5mhz cic filter 8 (0 stuff) = 40mhz 500khz = 85db bandwidth r = 10 4mhz hb/fir filter 5mhz clkin = 40mhz HSP50214B
3-12 figure 6. interpolation spectrum: interpolate by 8 the input data with zero stuffing; sample at rate r = fs figure 7. alias profile and the 85db dynamic range bandwidth figure 8. processor based external if agc f s 2f s 3f s 4f s 5f s 6f s 7f s 8f s 9f s 10f s f s f s /2 f s /4 f s /8 3f s /8 5f s /8 7f s /8 3f s /4 the input data spectrum sampled at rate r = f s 5mhz 10mhz 15mhz 20mhz 25mhz 30mhz 35mhz 40mhz 45mhz 50mhz 5mhz 10mhz 15mhz 20mhz 25mhz 30mhz 35mhz 40mhz decimate by 10 and cic filter; sample at rate r = fs/10 8mhz 12mhz 16mhz 20mhz 24mhz 28mhz 32mhz 36mhz 40mhz 4mhz 2mhz 1mhz 3mhz cic filter alias profile 85db dynamic range bandwidth cic filter response frequency o.5mhz 4mhz proc thresh pdc dac a/d gca if input input level detector (24-bit error value) HSP50214B
3-13 the integration period counter can be set up to run continuously or to count down and stop. continuous integration counter operation lets the counter run, with sampling occurring every time the counter reaches zero. because the processor samples the detector read port asynchronous to the clkin, data can be missed unless the status bit is monitored by the processor to ensure that a sample is taken for every integration count down sequence. additionally, in the HSP50214B, the ability to align the start/restart of the input level detector integration period with an external event is provided. this allows the sync signals, which are synchronized to external events, to be used to align all of the gain adjustments or measurements. if control word 27, bit 17 is set to a logic one, the syncin1 signal will cause the input level detector to start/restart its integration period. if control word 27, bit 17 is set to a logic zero, control of the start/restart of the input level detector integration period does not respond to syncin1. in the count down and stop mode, the microprocessor read commands can be synchronized to system events, such as the start of a burst for a tdma application. the integration counter can be started at any time by writing to control word 2. at the end of the integration period (counter = 0000), the upper 23 bits of the accumulator are transferred to a holding register for reading by the microprocessor. note that it is not the restarting of the counter (by writing to control word 2) that latches the current value, but the end of the integration count. when the accumulator results are latched, a bit is set in the status register to notify the processor. reading the most significant byte of the 23 bits clears the status bit. see the microprocessor read section. figure 11 illustrates a typical agc detection process. figure 9. input gating logic |x| r + + e g r e g accumulator clkin clkin input_threshold ? integration_interval ? start ? integration_mode ? in(13:0) ? to proc addr(2:0) 32 24 8 16 continuous single r e g m u x counter ? controlled via microprocessor interface. a/d output input magnitude theshold proc read 2 0 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 0 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 -2 0 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 0 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 0 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 f s -6db -12db -18db -24db -30db -36db -42db -48db -54db -60db -66db -72db -78db 2 14 2 13 2 12 2 11 2 10 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 17 2 16 2 15 2 18 2 0 2 -1 2 -2 2 -3 2 -4 2 14 2 13 2 12 2 11 2 10 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 17 2 16 2 15 2 18 0 000 010 001 read code a(2:0) ports accumulator figure 10. input threshold detector bit weighting HSP50214B
3-14 typically, the average input error is read from the input level detector port for use in agc applications. by setting the threshold to 0, however, the average value of the input signal can be read directly. the calculation is: where ?evel?is the 24-bit value read from the 3 level detector registers and ??is the number of samples to be integrated. note that to get the rms value of a sinusoid, multiply the average value of the recti?d sinusoid by 1.111. for a full scale input sinusoid, this yields an rms value of approximately 3dbf s . note: 1.111 scales the recti?d sinusoid average (2/ ) to 1/ 2 . in the HSP50214B, the polarity of the lsbs of the integration period pre-load is selectable. if control word 27, bit 23 is set to a logic one, the two lsbs of the integration period preload are set to logic ones. this allows a power of two to be set for the integration period, for easy normalization in the processor. if control word 27, bit 23 is set to a logic zero, then the two lsbs of the integration period preload are set to zeros as in the hsp50214. carrier synthesizer/mixer the carrier synthesizer/mixer section of the HSP50214B is shown in figure 12. the nco has a 32-bit phase accumulator, a 10-bit phase offset adder, and a sine/cosine rom. the frequency of the nco is the sum of a center frequency control word, loaded via the microprocessor interface (control word 3, bits 0 to 31), and an offset frequency, loaded serially via the cof and cofsync pins. the offset frequency can be zeroed in control word 0, bit 1. both frequency control terms are 32 bits and the addition is modulo 2 32 . the output frequency of the nco is computed as: or in terms of the programmed value: where n is the 32-bit sum of the center and offset frequency terms, f c is the frequency of the carrier nco sinusoids, f s is the input sampling frequency, and int is the integer of the computation. see the microprocessor write section on instructions for writing control word 3 . for example, if n is 3267 (decimal), and f s is 65mhz, then f c is 49.44hz. if received data is modulated at a carrier frequency of 10mhz, then the synthesizer/mixer should be programmed for n = 27627627 (hex) or d89d89d8 (hex). because the input enable, eni, controls the operation of the phase accumulator, the nco output frequency is computed relative to the input sample rate, f s , not to f clkin . the frequency control, n, is interpreted as twos complement because the output of the nco is quadrature. negative frequency l.o.s select the upper sideband; positive frequency l.o.s select the lower sideband. the range of the nco is -f s /2 to +f s /2. the frequency resolution of the nco is f s /(2 32 ) or approximately 0.015hz when clkin is 65 msps and eni is tied low. dbfs rms 20 () 1.111 () level () n () 16 () () ? [] log = (eq. 2) amplitude a) input signal c) threshold b) rectified signal d) accumulator inputs e) detector output amplitude amplitude amplitude amplitude amplitude f) closed loop steady state (constant input) figure 11. signal processing within level detector f c f s * n 2 32 () ? , = (eq. 3) nintf c 2 32 f s ? [] hex , = (eq. 3a) shift reg sync reg reg cof cofsync sin/cos rom reg reg to mixers sin cos carrier frequency ? carrier frequency carrier 32 32 10 18 18 mux 0 cof mux 0 clear phase accumulator cf cof enable ? r e g reg + reg + ? controlled via microprocessor interface. 18 phase offset ? phase accum ? carrier strobe ? carrier load on update ? r e g strobe ? phase sync circuitry eni figure 12. block diagram of nco section r e g syncin1 (f c ) HSP50214B
3-15 the phase of the carrier nco can be shifted by adding a 10-bit phase offset to the msbs (modulo 360 o ) of the output of the phase accumulator. this phase offset control has a resolution of 0.35 o and can be interpreted as twos complement from -180 o to 180 o ( - to ) or as binary from 0 to 360 o ( 0to2 ) . the phase offset is given by: or, in terms of the parameter to be programmed: where po is the 10-bit twos complement value loaded into the phase offset register (control word 4, bits 9-0). for example, a value of 32 (decimal) loaded into the phase offset register would produce a phase offset of 11.25 o and a value of -512 would produce an offset of 180 o . the phase offset is loaded via the microprocessor interface. see the microprocessor write section on instructions for writing control word 4. the most signi?ant 18 bits from the phase adder are used as the address a sin/cos lookup table. this lookup table maps phase into sinusoidal amplitude. the sine and cosine values have 18 bits of amplitude resolution. the spurious components in the sine/cosine generation are at least -102dbc. the sine and cosine samples are routed to the mixer section where they are multiplied with the input samples to translate the signal of interest to baseband. the mixer multiplies the 14-bit input by the 18-bit quadrature sinusoids. the mixer equations are: the mixer output is rounded symmetrically to 15 bits. to allow the frequency and phase of multiple parts to be updated synchronously, two sets of registers are used for latching the center frequency and phase offset words. the offset phase and center frequency control words are first loaded into holding registers. the contents of the holding registers are transferred to active registers in one of two ways. the first technique involves writing to a specific control word address. a processor write to control word 5, transfers the center frequency value to the active register while a processor write to control word 6 transfers the phase offset value to the active register. the second technique, designed for synchronizing updates to multiple parts, uses the syncin1 pin to update the active registers. when control word 1, bit 20 is set to 1, the syncin1 pin causes both the center frequency and phase offset holding registers to be transferred to active registers. additionally, when control word 0, bit 0 is set to 1, the feedback in the phase accumulator is zeroed when the transfer from the holding to active register occurs. this feature provides synchronization of the phase accumulator starting phase of multiple parts. it can also be used to reset the phase of the nco synchronous with a specific event. the carrier offset frequency is loaded using the cof and cofsync pins. figure 13 details the timing relationship between cof, cofsync and clkin. the offset frequency word can be zeroed if it is not needed. similarly, the sample offset frequency register controlling the re- sampler nco is loaded via the sof and sofsync pins. the procedure for loading data through the two pin nco interfaces is identical except that the timing of sof and sofsync is relative to procclk. each serial word has a programmable word width of either 8, 16, 24, or 32 bits (see control word 0, bits 4 and 5, for the carrier nco programming and control word 11, bits 3 and 4, for timing nco programming). on the rising edge of the clock, data on cof or sof is clocked into an input shift register. the beginning of a serial word is designated by asserting either cofsync or sofsync ?igh?one clk period prior to the ?st data bit. note: serial data must be loaded msb first, and cofsync or sofsync should not be asserted for more than one clk cycle. off 2 po 2 10 ? () 2 9 () po 2 9 1 () ? () ; = (eq. 4) 512 to 511 () po int 2 10 off () 2 ?] hex off << () ; [ = (eq. 4a) i out i in c () cos = (eq. 5) q out i in c () sin = (eq. 5a) cof/ msb msb clkin cofsync/ sofsync sof lsb ote: data must be loaded msb first. igure 13. serial input timing for cof and sof inputs ? serial word width can be: 8, 16, 24, 32 bits wide. ? t d is determined by the cofsync, cofsync rate. figure 14. holding registers load sequence for cof and sof serial offset frequency data 32 ? 54 50 46 42 38 34 30 26 22 18 14 10 6 2 30 28 26 24 ? 22 20 18 16 ? 14 12 10 8 ? 6 4 2 0 shift counter value data transferred to holding register t d ?? t d ?? t d ?? t d ?? clk times assertion of cofsync, sofsync (8) (32) (16) (24) HSP50214B
3-16 note: cof loading and timing is relative to clkin while sof loading and timing is relative to procclk. note: t d can be 0, and the fastest rate is with 8-bit word width. the assertion of the cofsync (or sofsync) starts a count down from the programmed word width. on following clks, data is shifted into the register until the specified number of bits have been input. at this point the contents of the register are transferred from the shift register to the respective 32-bit holding register. the shift register can accept new data on the following clk. if the serial input word is defined to be less than 32 bits, it will be transferred to the msbs of the 32-bit holding register and the lsbs of the holding register will be zeroed. see figure 14 for details. cic decimation filter the mixer output may be filtered with the cic filter or it may be routed directly to the halfband filters. the cic filter is used to reduce the sample rate of a wideband signal to a rate that the halfbands and programmable filters can process, given the maximum computation speed of procclk. (see halfband and fir filter sections for techniques to calculate this value). prior to the cic ?ter, the output of the mixer goes through a barrel shifter. the shifter is used to adjust the gain in 6db steps to compensate for the variation in cic ?ter gain with decimation. (see equation 6). fine gain adjustments must be done in the agc section. the shifter is controlled by the sum of a 4-bit cic shift gain word from the microprocessor and a 3-bit gain word from the gainadj(2:0) pins. the three bit value is pipelined to match the delay of the input samples. the sum of the 3 and 4-bit shift gain words saturates at a value of 15. table 1 details the permissible values for the gainadj(2:0) barrel shifter control, while figure 15 shows the permissible cic shift gain values. the cic ?ter structure for the HSP50214B is ?th order; that is it has ?e integrator/comb pairs. a ?th order cic has 84db of alias attenuation for output frequencies below 1/8 the cic output sample rate. the decimation factor of the cic filter is programmed in control word 0, bits 12 - 7. the cic shift gain is programmed in control word 0, bits 16-13. the cic bypass is set in control word 0, bit 6. when bypassing the cic filter, the eni signal must be de-asserted between samples, i.e., the clkin rate must be 2 ? f s . cic gain calculations the gain through the cic ?ter increases with increased decimation. the programmable barrel shifter that precedes the ?st integrator in the cic is used to offset this variation. gain variations due to decimation should be offset using the 4-bit cic shift gain word. this allows the input signal level to be adjusted in 6db steps to control the cic output level. the gain at each stage of the cic is: where r is the decimation factor and n is the number of stages. the input to the cic from the mixer is 15 bits, and the bit widths of the accumulators for the five stages in the HSP50214B are 40, 36, 32, 32, and 32, as shown in figure 16. this limits the maximum decimation in the cic to 32 for a full scale input. if r is 32, the gain through all five integrator stages is 32 5 =2 25 . (the gain through the last four cic stages is 2 20 , through the last 3 it is 2 15 , etc.). the sum of the input bits and the growth bits cannot exceed the accumulator size. this means that for a decimation of 32 and 15 input bits, the first accumulator must be 15 + 25 = 40 bits. thus, the value of the cic shift gain word can be calculated: note: the number of input bits is iin. (if the number of bits into the cic ?ter is used, the value 40 replaces 39). for 14 bits, equation 7 becomes: figure 15. cic shift gain values 15 13 11 9 7 5 4 2 0 16 440 32 24 64 56 48 decimation (r) cic shift gain (from processor) 14 12 10 8 6 3 1 812202836445260 8-bit input 12-bit input 10-bit input 14-bit input allowable cic shift gains are below the curves table 3. gain adjust control and cic decimation ? gain value (db) gain adj(2:0) max. cic decimation 0 000 32 6 001 27 12 010 24 18 011 21 24 100 18 30 101 16 36 110 12 42 111 10 kr n , = (eq. 6) (eq. 7) sg = floor 39 - [ iin () - log 2 (r) 5 for 4HSP50214B
3-17 for 12 bits, equation 7 becomes: for 10 bits, equation 7 becomes: for 8 bits, equation 7 becomes: figure 15 is a plot of equations 8a through 8d. the 4-bit cic shift gain word has a range from 0 to 15. the 6-bit decimation factor counter preload ?ld, (r-1), has a range from 0 to 63, limited by the input resolution as cited above. using the input gain adjust control signals the input gain offset control gainadj(2:0)) is provided to offset the signal gain through the part, i.e., to keep the cic ?ter output level constant as the analog front end attenuation is changed. the gain adjust offset is 6db per code, so the gain adjust range is 0 to 42db. for example, if 12db of attenuation is switched in at the receiver rf front end, a code of 2 would increase the gain at the input to the cic ?ter up 12db so that the cic ?ter output would not drop by 12db. this ?ed gain adjust eliminates the need for the software to continually normalize. one must exercise care when using this function as it can cause over?w in the cic ?ter. each gain adjust in the shifter from the gain adjust control signals is the equivalent of an extra bit of input. the maximum decimation in the cic is reduced accordingly. with a decimation of 32, all 40 bits of the cic are needed, so no input offset gain is allowed. as the decimation is reduced, the allowable offset gain increases. table 3 shows the decimation range versus desired offset gain range. table 3 assumes that the cic shift gain has been programmed per equation 7 or 8a. the cic filter decimation counter can be loaded synchronous with other pdc chips, using the syncin1 signal and the cic external sync enable bit. the cic external sync enable is set via control word 0, bit 19. halfband decimating filters the programmable down converter has ?e halfband ?ter stages, as shown in figure 17. each stage decimates by 2 and ?ters out half of the available bandwidth. the ?st halfband, or hb1, has 7 taps. the remaining halfbands; hb2, hb3, hb4, and hb5; have 11, 15, 19, and 23 taps respectively. the coef?ients for these halfbands are given in table 4. figure 18 shows the frequency response of each of the halfband ?ters with respect to normalized frequency, f n . frequency normalization is with respect to the input sampling frequency of each ?ter section. each stage is activated by their respective bit location (15-20) in control word 7. any combination of halfband ?ters may be used, or all may be bypassed. since each halfband ?ter section decimates by 2, the total decimation through the halfband ?ter is given by: where n = number of halfband filters selected (1 - 5). sg floor 27 log 2 r () 5 ] for 5 < r < 40 [ = (eq. 8b) 15 = for 4 r 5 sg floor 29 log 2 r () 5 ] for 6 < r < 52 [ = (eq. 8c) for 4 r 6 15 = sg floor 31 log 2 r () 5 ] for 9 < r < 64 [ = (eq. 8d) 15 = for 4 r 9 cic 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -24 2 -25 2 -26 2 -27 2 -28 2 -29 2 -30 2 -31 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 acc1 2 -32 2 -33 2 -34 2 -35 2 -36 2 -37 2 -38 2 -39 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -1 2 -2 2 -3 0 input 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -1 2 -2 2 -3 0 input 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -24 2 -25 2 -26 2 -27 2 -28 2 -29 2 -30 2 -31 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 2 -32 2 -33 2 -34 2 -35 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -24 2 -25 2 -26 2 -27 2 -28 2 -29 2 -30 2 -31 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -24 2 -25 2 -26 2 -27 2 -28 2 -29 2 -30 2 -31 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -24 2 -25 2 -26 2 -27 2 -28 2 -29 2 -30 2 -31 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 2 -18 2 -19 2 -20 2 -21 2 -22 2 -23 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 2 -11 2 -12 2 -13 2 -14 2 -15 2 -16 2 -17 2 -1 2 -2 2 -3 0 acc2 acc5 acc3 acc4 figure 16. cic filter bit weighting output shifter bits taken when cic is bypassed (shft=0) (shft=15) output note: if 14 input bits are not needed, the gain adjust can be in- creased by one for each bit that the input is shifted down at the input. for example, if only 12 bits are needed, an offset range of 24db is possible for a decimation of 24. dec hb 2 n = (eq. 9) HSP50214B
3-18 f n = f s f hb1 = f s or f s /2 f hb2 = f hb1 or f hb1 /2 f n = f hb1 f hb3 = f hb2 or f hb2 /2 f n = f hb2 f n = f hb3 f hb4 = f hb3 or f hb3 /2 f n = f hb4 halfband halfband filter input control word 7, bit 15 f 5 = f hb4 or f hb4 /2 0 1 0 1 0 1 control word 7, bit 16 control word 7, bit 17 control word 7, bit 18 control word 7, bit 19 filter output f in = f s ? each halfband section decimates by 2. ? ? ? ? ? halfband filter 1 0 1 0 1 halfband filter 2 halfband filter 3 halfband filter 4 halfband filter 5 figure 17. block diagram of halfband filter section figure 18. halfband filter frequency response 0 -20 -40 -60 -80 -100 -120 0.125 0.25 0.375 0.5 magnitude (db) normalized frequency (f n ) halfband filter 4 halfband filter 3 halfband filter 2 halfband filter 1 -6db bandwidth halfband filter 5 figure 19. halfband filter alias considerations magnitude (db) normalized frequency (f n ) halfband filter 4 halfband filter 3 halfband filter 2 halfband filter 1 alias profiles halfband filter 5 0 -20 -40 -60 -80 -100 -120 0.125 0.25 0.375 0.5 -6db bandwidth HSP50214B
3-19 depending on the number of halfbands used, procclk must operate at a minimum rate above the input sample rate, f s , to the halfband. this relationship depends on the number of multiplies for each of the halfband ?ter stages. the ?ter calculations take 3, 4, 5, 6, and 7 multiplies per input for hb1, hb2, hb3, hb4, and hb5 respectively. if we keep the assumption that f s is the input sampling frequency, then equation 10 shows the minimum ratio needed. f procclk /f s ([(7)(hb5)(2 hb5 )+ (6)(hb4)(2 (hb4 + hb5) )+ (5)(hb3)(2 (hb3+hb4+hb5) )+ (4)(hb2)(2 (hb2+hb3+ hb4+hb5) )+ (3)(hb1)(2 (hb1+hb2+hb3+hb4+hb5) )]/2 t (eq. 10) where hb1 = 1 if this section is selected and 0 if it is bypassed; hb2 = 1 if this section is selected and 0 if it is bypassed; hb3 = 1 if this section is selected and 0 if it is bypassed; hb4 = 1 if this section is selected and 0 if it is bypassed; hb5 = 1 if this section is selected and 0 if it is bypassed; t = number of halfband filters selected. the range for t is from 0 to 5. examples of procclk rate calculations suppose we enable hb1, hb3, and hb5. using figure 16, hb1= 1, hb3 = 1, and hb5 = 1. since stage 2 and stage 4 are not used, hb2 and hb4 = 0. procclk must operate faster than (7x2+5x4+3x8)/8 = 7.25 times faster than f s . if all five halfbands are used, then procclk must operate at (7x2+6x4+5x8+4x16+3x32)/32 = 7.4375 times faster than f s . 255-tap programmable fir filter the programmable fir ?ter can be used to implement real ?ters with even or odd symmetry, using up to 255 ?ter taps, or complex ?ters with up to 64 taps. the fir ?ter takes advantage of symmetry in coef?ients by summing data samples that share a common coef?ient, prior to multiplication. in this manner, two ?ter taps are calculated per multiply accumulate cycle. asymmetric ?ters cannot share common coef?ients, so only one tap per multiply accumulate cycle is calculated. the ?ter can be effectively bypassed by setting the coef?ient c 0 = 1 and all other coef?ients, c n = 0. table 4. halfband filter coefficients coefficients halfband #1 halfband #2 halfband #3 halfband #4 halfband #5 c0 - 0.031303406 0.005929947 -0.00130558 0.000378609 -0.000347137 c1 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000 c2 0.281280518 -0.049036026 0.012379646 -0.003810883 0.00251317 c3 0.499954224 0.000000000 0.000000000 0.000000000 0.000000000 c4 0.281280518 0.29309082 -0.06055069 0.019245148 -0.010158539 c5 0.000000000 0.499969482 0.000000000 0.000000000 0.000000000 c6 - 0.031303406 0.29309082 0.299453735 -0.069904327 0.03055191 c7 0.000000000 0.499954224 0.000000000 0.000000000 c8 -0.049036026 0.299453735 0.304092407 -0.081981659 c9 0.000000000 0.000000000 0.500000000 0.000000000 c10 0.005929947 -0.06055069 0.304092407 0.309417725 c11 0.000000000 0.000000000 0.500000000 c12 0.012379646 -0.069904327 0.309417725 c13 0.000000000 0.000000000 0.000000000 c14 -0.00130558 0.019245148 -0.081981659 c15 0.000000000 0.000000000 c16 -0.003810883 0.03055191 c17 0.000000000 0.000000000 c18 0.000378609 -0.010158539 c19 0.000000000 c20 0.00251317 c21 0.000000000 c22 -0.000347137 note: while halfband ?ters are typically selected starting with the last stage in the ?ter chain to give the maximum alias free bandwidth, a higher throughput rate may be obtained using other ?ter combinations. see application note 9720, ?alculating maximum pro- cessing rates of the pdc? HSP50214B
3-20 additionally, the programmable fir ?ter provides for decimation factors, r, from 1 to 16. the processing rate of the filter compute engine is procclk. as a result, the frequency of procclk must exceed a minimum value to ensure that a ?ter calculation is complete before the result is required for output. in con?urations which do not use decimation, one input sample period is available for ?ter calculation before an output is required. for con?urations which employ decimation, up to 16 input sample periods may be available for ?ter calculation. for real filter configurations, use equation 11 to calculate the number of taps available at a given input filter sample rate. for real ?ters, and for complex ?ters, where ?or is de?ed as the integer portion of a number; procclk is the compute clock; f samp = the fir input sample rate; r = decimation factor; sym = 1 for symmetrical ?ter, 0 for asymmetrical ?ter; odd# = 1 for an odd number of ?ter taps, 0 = an even number of taps. use equation 12 to calculate the maximum input rate. for real ?ters, and for complex ?ters, where ?or[x], procclk, f samp , r = decimation factor, sym, and odd# are de?ed as in equation 11. use equation 13 to calculate the maximum output sample rate for both real and complex ?ters. the coef?ients are 22 bits and are loaded using writes to control words 128 through 255 (see microprocessor write section). for real ?ters, the same coef?ients are used by i and q paths. if the ?ter is con?ured as a symmetric ?ter using control word 17, bit 9, then coef?ients are loaded starting with the center coef?ient in control word 128 and proceeding to last coef?ient in control word 128+n. the ?ter symmetry type can be set to even or odd symmetric, and the number of ?ter coef?ients can be even or odd, as illustrated in figure 20. note that complex ?ters can also be realized but are only allowed to be asymmetric. only the coef?ients that are used need to be loaded. automatic gain control (agc) the agc section provides gain to small signals, after the large signals and out-of-band noise have been ?tered out, to ensure that small signals have suf?ient bit resolution in the resampling/interpolating halfband ?ters and the output formatter. the agc can also be used to manually set the gain. the agc optimizes the bit resolution for a variety of input amplitude signal levels. the agc loop automatically adds gain to bring small signals from the lower bits of the 26- bit programmable fir ?ter output into the 16-bit range of the taps floor procclk f samp r ? () ? r ] [ () 1 + ( = (eq. 11a) sym) sym () odd# () [] taps floor (procclk f samp r ? () ? r ) 2] ? [ = (eq. 11b) (eq. 12a) f samp procclk () r () r floor taps () [ [ + [ ? + = sym () odd# ()] 1sym + () ?]] (eq. 12b) f samp procclk () r () [] r floor taps () 2 ()] [ + [] ? = (eq. 13) f fir out f samp () r ? = even symmetric even tap filter odd symmetric even tap filter even symmetric odd tap filter odd symmetric odd tap filter c0 cn-1 coefficient value coefficient value c0 cn-1 c0 cn-1 coefficient number coefficient number coefficient number coefficient number coefficient value coefficient value asymmetric odd tap filter c0 cn-1 coefficient number coefficient value asymmetric even tap filter c0 cn-1 coefficient number coefficient value complex filters c q(0) c i(n-1) coefficient number imaginary real coefficient v alue c i(0) c q(n-1) real filters de?itions: even symmetric: h(n) = h(n-n-1) for n = 0 to n-1 odd symmetric: h(n) = -h(n-n-1) for n = 0 to n-1 asymmetric: a ?ter with no coef?ient symmetry. even tap ?ter: a ?ter where n is an even number. odd tap ?ter: a ?ter where n is an odd number. real filter: a ?ter implemented with real coef?ients. complex filters: a ?ter with quadrature coef?ients. figure 20. demonstration of different types of digital fir filters configured in the programmable downconverter coefficient value c q c i c0 cn HSP50214B
3-21 output section. without gain control, a signal at -72dbfs = 20log 10 (2 -12 ) at the input would have only 4 bits of resolution at the output (12 bits less than the full scale 16 bits). the potential increase in the bit resolution due to processing gain of the ?ters can be lost without the use of the agc. figure 23 shows the block diagram for the agc section. the fir ?ter data output is routed to the resampling and halfband ?ters after passing through the agc multipliers and shift registers. the outputs of the interpolating halfband ?ters are routed to the cartesian to polar coordinate converter. the magnitude output of the coordinate converter is routed through the agc error detector, the agc error scaler and into the agc loop ?ter. this ?tered error term is used to drive the agc multiplier and shifters, completing the agc control loop. the agc multiplier/shifter portion of the agc is identi?d in figure 23. the gain control from the agc loop ?ter is sampled when new data enters the multiplier/shifter. the limit detector detects over?w in the shifter or the multiplier and saturates the output of i and q data paths independently. the shifter has a gain from 0 to 90.31db in 6.021db steps, where 90.31db = 20log 10 (2 n ), when n = 15. the mantissa provides an additional 6db of gain in 0.0338db steps where 6.0204db = 20log 10 [1+(x)2 -15 ], where x = 2 15 -1. thus, the agc multiplier/shifter transfer function is expressed as: where n, the shifter exponent, has a range of 0HSP50214B
3-22 the agc threshold value (control word 8, bits 16-28) is shown in table 5. note that the msb is always zero. the range of the agc threshold value is 0 to +3.9995. the agc error detector output has the identical range. the loop gain is set in the agc error scaling circuitry, using the two programmable mantissas and exponents. the mantissa, m, is a 4-bit value which weights the loop ?ter input from 0.0 to 0.9375. the exponent, e, de?es a shift factor that provides additional weighting from 2 0 to 2 -15 . together the mantissa and exponent de?e the loop gain as given by, where m lg is a 4-bit binary value ranging from 0 to 15, and e lg is a 4-bit binary value ranging from 0 to 15. table 7 and 8 detail the binary values and th e resulting scaling effects of the agc scaling mantissa and exponent. the composite (shifter and multiplier) agc scaling gain range is from 0.0000 to 2.329(0.9375) 2 0 = 0.0000 to 2.18344. the scaled gain error can range (depending on threshold) from 0 to 2.18344, which maps to a ?ain change per sample?range of 0 to 3.275db/sample. the agc gain mantissa and exponent values are programmed into control word 8, bits 0-15. the pdc provides for the storing of two values of agc scaling gain (both exponent and mantissa). this allows for quick adjustment of the loop gain by simply asserting the external control line agcgnsel. when agcgnsel = 0, then agc gain 0 is selected, and when agcgnsel = 1, agc loop gain 1 is selected. possible applications include acquisition/tracking, no burst present/burst present, strong signal/weak signal, track/hold, or fast/slow agc values. the agc loop ?ter consists of an accumulator with a built in limiting function. the maximum and minimum agc gain limits are provided to keep the gain within a speci?d range and are programed by 12-bit control words using the following the equation: where m is an 8-bit mantissa value between 0 and 255, and e is the 4-bit exponent ranging from 0 to 15. control word 9, bits 16-27 are used for programming the upper limit, while bits 0-11 are used to program the lower threshold. the ranges and format for these limit values are shown in tables 6a - c. the bit weightings for the agc loop feedback elements are detailed in table 9. table 5. agc threshold (control word 8) bit weighting 28 27 26 25 24 23 22 21 20 19 18 17 16 2 2 2 1 2 0 . 2 -1 2 -2 2 -3 2 -4 2 -5 2 -6 2 -7 2 -8 2 -9 2 -10 (eq. 16) agc loop gain m lg 2 4 2 15 e lg () = (eq. 17) agc gain limit 1 m agc 2 9 + () 2 e = agc gain limit () db = 6.02 () eeee () 20 1.0 0.mmmmmmmm + () log + (eq. 17a) table 6a. agc limit exponent vs gain gain(db) exponent mantissa 96.332 15 255 90.309 15 0 84.288 14 0 78.268 13 0 72.247 12 0 66.227 11 0 60.206 10 0 54.185 9 0 48.165 8 0 42.144 7 0 36.124 6 0 30.103 5 0 24.082 4 0 18.062 3 0 12.041 2 0 6.021 1 0 0.000 0 0 table 6b. agc limit mantissa vs gain gain(db) exponent mantissa 6.000 0 255 5.750 0 240 5.500 0 226 5.250 0 212 5.000 0 199 4.750 0 185 4.500 0 173 4.250 0 161 4.000 0 149 3.750 0 138 3.500 0 127 3.250 0 116 3.000 0 105 2.750 0 95 2.500 0 85 2.250 0 75 2.000 0 66 1.750 0 57 1.500 0 48 1.250 0 39 1.000 0 31 0.750 0 23 0.500 0 15 0.250 0 7 0.020 0 1 HSP50214B
3-23 using agc loop gain, the agc range, and expected error detector output, the gain adjustments per output sample for the loop filter section of the digital agc can be given by the loop gain determines the growth rate of the sum in the loop accumulator which, in turn, determines how quickly the agc gain traces the transfer function given in figures 21 and 22. since the log of the gain response is roughly linear, the loop response can be approximated by multiplying the maximum agc gain error by the loop gain. the expected table 6c. agc limit data format control word 9 bit: 27 26 25 24 23 22 21 20 19 18 17 16 format e e e e mmmmmmmm shifter shifter exp=2 nnnn mantissa = limit det limiter limiter limit det 01.xxxxxxxxxxxxxx register 18 ifir qfir qagc iagc stt.tttttttttt unsigned ? threshold ? magnitude shift loop gain 1 man ? exp ? agcgnsel exp limit det upper limit ? lower limit ? p serial out msb = 0 agc loop filter agc multiplier/shifter 18 26 18 18 26 resampling and interpolating filters fir filters halfband cartesian to polar coordinate converter 4 16 limiter 20 register 16 16 4 4 agc register 0 agc register 1 loop gain 0 man ? exp ? 13 13 agc error scaling agc msb = 0 error detector (range = 0 to 2.3) (range = 0 to 1) (g = 1.64676) ? controlled via microprocessor interface. figure 23. agc block diagram (range = -2.18344 to 2.18344) + m p agc load en (11 mantissa 4 exponent) mantissa (s = 0) u x (eq. 18) agc slew rate 1.5db thresh mag*1.64676 ()) ( = m lg () 2 4 () 2 15 e lg () ?? ?? HSP50214B
3-24 range for the agc rate is ~ 0.000106 to 3.275db/output sample time for a threshold of 1/2 scale. see the notes at the bottom of table 9 for calculation of the agc response times. the maximum agc response is given by: since the agc error is scaled to adjust the gain, the loop settles asymptotically to its ?al value. the loop settles to the mean of the signal. for example, if m lg = 0101 and e lg = 1100, the agc loop gain = 0.3125*2 -7 . the loop gain mantissas and exponents are set in the agc loop parameter control register (control word 8, bits 0-15). two agc loop gains are provided in the programmable down converter, for quick adjustment of the agc loop. the agc gain select is a control input to the device, selecting gain 0 when agcgnsel = 0, and selecting gain 1 when agcgnsel = 1. in the hsp50214, a reset event (caused by syncin2 or cw25) would clear the agc loop ?ter accumulator. in the HSP50214B, if control word 27, bit 15 is set to zero, the agc loop ?ter accumulator will clear as in the original hsp50214. if control word 27, bit 15 is set to a one, the backend reset (from cw25) will not clear the agc loop ?ter accumulator. in the hsp50214, the settling mode of the agc forces the mean of the signal magnitude error to zero. the gain error is scaled and used to adjust the gain up or down. this proportional scaling mode causes the agc to settle to the ?al gain value asymptotically. this agc settling mode is preferred in many applications because the loop gain adjustments get smaller and smaller as the loop settles, reducing any am distortion caused by the agc. with this agc settling mode, the proportional gain error causes the loop to settle more slowly if the threshold is small. this is because the maximum value of the threshold minus the magnitude is smaller. also, the settling can be asymmetric, where the loop may settle faster for over range signals than for ?nder range?signals (or vice versa). in some applications, such as burst signals or tdma signals, a very fast settling time and/or a more predictable settling time is desired. the agc may be turned off or slowed down after an initial agc settling period. to minimize the settling time, a median agc settling mode has been added to the HSP50214B. this mode uses a xed gain adjustment with only the direction of the adjustment controlled by the gain error. this makes the settling time independent of the signal level. for example, if the loop is set to adjust 0.5db per output sample, the loop gain can slew up or down by 16db in 16 symbol times, assuming a 2 samples per symbol output sample rate. this is called a median settling mode because the loop settles to where there is an equal number of magnitude samples above and below the threshold. the disadvantage of this mode is that the loop will have a wander (dither) equal to the programmed step size. for this reason, it is advisable to set one loop gain for fast settling at the beginning of the burst and the second loop gain for small adjustments during tracking. the median settling mode is enabled by setting control word 27, bit 16 to a logic one. if control word 27, bit 16 is zero, the mean loop settling mode is selected and the loop works identically to the hsp50214. in the median mode, the loop works as follows: the sign of the true gain error selects a ?ed gain error of 0010000000000 b or 1110000000000 b . these gain error values are scaled by the programmable agc loop gains to adjust the data path gain. table 7. agc loop gain binary mantissa to gain scale factor mapping binary code (mmmm) scale factor binary code (mmmm) scale factor 0000 0.0000 1000 0.5000 0001 0.0625 1001 0.5625 0010 0.1250 1010 0.6250 0011 0.1875 1011 0.6875 0100 0.2500 1100 0.7500 0101 0.3125 1101 0.8125 0110 0.3750 1110 0.8750 0111 0.4375 1111 0.9375 table 8. agc loop gain binary exponent to gain scale factor mapping binary code (eeee) scale factor binary code (eeee) scale factor 0000 2 15 1000 2 7 0001 2 14 1001 2 6 0010 2 13 1010 2 5 0011 2 12 1011 2 4 0100 2 11 1100 2 3 0101 2 10- 1101 2 2 0110 2 9 1110 2 1 0111 2 8 1111 2 0 (eq. 19) agc response max input(cart/polar gain)(error det gain) agc ( = loop gain)(agc output weighting) HSP50214B
3-25 the maximum slew rate is ~1.5db per output sample. see equation 18. in order to fully evaluate the dynamic range of the pdc, table 9b is provided, which details the bit weighting from the input to the agc multiplier. re-sampler/halfband filter the re-sampler is an nco controlled polyphase ?ter that allows the output sample rate to have a non-integer relationship to the input sample rate. the ?ter engine can be viewed conceptually as a xed interpolation ?ter, followed by an nco controlled decimator. the prototype polyphase ?ter has 192 taps designed at 32 times the input sample rate. each of the 32 phases has 6 ?ter taps (6)(32) = 192. the stopband attenuation of the prototype ?ter is greater than 60db, as shown in figure 24. the signal to total image power ratio is approximately 55db, due to the aliasing of the interpolation images. the ?ter is capable of decimation factors from 1 to 4. if the output is at least 2x the baud rate, the 32 interpolation phases yield an effective sample rate of 64x the baud rate or approximately 1.5%, (1/64), maximum timing error. following the re-sampler are two interpolation halfband ?ters. the halfband ?ters allow the user to up-sample by 2 or 4 to recover time resolution lost by decimating. interpolating by 2 or 4 gives 1/4 or 1/8 baud time resolution (assuming 2x baud at the re-sampler output). the halfband ?ters use the same coef?ients as hb3 and hb5 from the halfband filters section. if one halfband is used, the 23-tap ?ter is chosen. if two are used, the 23-tap ?ter runs ?st followed by the 15-tap ?ter operating at twice the ?st halfbands rate. the 23-tap ?ter requires 7 multiplies, and the 15-tap ?ter requires 5 multiplies to complete a ?ter calculation. using the interpolation halfband ?ters allows for reduction in the fir ?ter sample rate. this optimizes the use of the programmable fir ?ter by allowing the fir output sample rate to be closer to the nyquist rate of the desired bandwidth. optimizing the fir ?ter performance provides better use of the programmable fir taps. table 10 details the maximum clocking rates for the possible resampling and interpolation halfband ?ter con?urations of this section of the pdc. control word 16, bits 2-0 identify the ?ter con?uration. control word 16, bit 3 is used to bypass the polyphase re-sampler ?ter. for proper data output from the interpolation ?ters, the data ready signal must account for the interpolation process. figure 25 illustrates the insertion of additional data ready pulses to provide suf?ient pulses for the new output sample rate. the re-sampler output pulse delay parameter is set in control word 16, bits 4-11. these bits set the delay between the output samples when interpolation is utilized. program this distance between pulses using a value of at least 5 is required to have sufficient time to update the output buffer register. (writing 5 samples requires 5 clock cycles) a value of at least 16 is required for proper serial output from the part. (conversion from 16-bit parallel to serial). the value is programmed in numbers of procclks. (eq. 20) nf procclk /f out () 1 ] [ = figure 24a. polyphase resampler filter broadband frequency response figure 24b. polyphase resampler filter pass band frequency response there is a 65db limitation in snr using the re-sampler filter. when only the interpolation firs are used, the full snr range is passed. 0 -20 -40 -60 -80 -100 -120 magnitude (db) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 frequency (relative to f s ) 10 0 -10 -20 -30 -40 -50 -60 -70 -80 magnitude (db) 0.0625 0.125 0.1875 0.25 0.3125 0.375 0.4375 0.5 0.5625 0.625 0.6875 0.75 0.8125 0.875 0.9375 1 frequency (relative to f s ) 0 HSP50214B
3-26 . table 9a. bit weighting for agc loop feedback path agc accum bit position gain error input gain error bit weight agc loop filter gain (mantissa) agc loop filter gain multiplier (output) shift = 0 shift = 4 shift = 8 shift = 15 agc output and agc limits bit weight agc gain resolution (db) 31 2222 0 30 222 2 e3 48 29 222 2 e2 24 28 222 2 e1 12 27 12 = 2 2 2 2 2 2 e0 6 26 11 = 1 1 2 2 2 1 m-1 3 25 10 = 0. 0. 0. 2 2 2 0. m -2 1.5 24 9 = 1 x 1 2 2 2 1 m -3 0.75 23 8 = 2 x 2 2 2 2 2 m -4 0.375 22 7 = 3 x 3 2 2 2 3 m -5 0.1875 21 6 = 4 x 4 2 2 2 4 m -6 0.09375 20 5= 5 5 2225 m -7 0.04688 19 4= 6 6 2216 x -8 0.02344 18 3 = 7 7 2 2 0. 7 -9 0.01172 17 2= 8 8 2218 -10 0.00586 16 1= 9 9 2229 -11 0.00293 15 0 = 10 10 2 1 3 10 -12 0.00146 14 11 2 0. 4 11 -13 0.000732 13 12 2 1 5 12 -14 0.000366 12 13 2 2 6 13 -15 0.000183 11 14 1 3 7 14 -16 0.0000916 10 0. 4 8 g -17 0.0000458 9 1 5 9 g -18 0.0000229 8 2 6 10 g -19 0.0000114 7 3 7 11 g -20 0.00000572 6 4 8 12 g -21 0.00000286 55913g 4 6 10 14 g 3711gg 2812gg 1913gg 01014gg agc response max = input(cart/polargain)(error det gain)(agc loop gain max )(agc output weighting). g = ground = 0. agc response max =. agc response min =. thus, the expected range for the agc rate is ~ 0.000106 to 3.275db/output sample time. 2 () 1.64676 () 15 16 ------ ?? ?? 1 () 1.5db () 3.275db/output sample time 2 () 1.64676 () 2 15 () 1 () 1.5db () 0.000106db/output sample time HSP50214B
3-27 table 9b. pdc bit weighting bit weight input sin/cos mix out cic in shift = 0 cic in shift = 15 cic bit weights iiiiiccccc cic out hb data in hb data out/fir in fir coef fir multi/ acc fir out 0 0 0 0 s s xxxxxxxxxx 0 0 0 0 1 1 1 1 1 s s xxxxxxxxxx 1 1 1 1 0 0 2 2 2 2 s s xxxxxxxxxx 2 2 2 2 1 1 3 3 3 3 s s xxxxxxxxxx 3 3 3 3 2 2 4 4 4 4 s s xxxxxxxxxx 4 4 4 4 3 3 5 5 5 5 s s xxxxxxxxxx 5 5 5 5 4 4 6 6 6 6 s s xxxxxxxxxx 6 6 6 6 5 5 7 7 7 7 s s xxxxxxxxxx 7 7 7 7 6 6 8 8 8 8 s s xxxxxxxxxx 8 8 8 8 7 7 9 9 9 9 s s xxxxxxxxxx 9 9 9 9 8 8 10 10 10 10 s 10(s) xxxxxxxxxx 10 10 10 10 9 9 11 11 11 11 s 11 xxxxxxxxxx 11 11 11 11 10 10 12 12 12 12 s 12 xxxxxxxxxx 12 12 12 12 11 11 13 13 13 13 s 13 xxxxxxxxxx 13 13 13 13 12 12 14 14 14 s 14 xxxxxxxxxx 14 14 14 14 13 13 15 15 srnd s 15 xxxxxxxxxx 15 15 15 15 14 14 16 16 s 16 xxxxxxxxxx 16 16 16 16 15 15 17 17 s 17 xxxxxxxxxx 17 17 17 17 16 16 18 s 18 xxxxxxxxxx 18 18 18 18 17 17 19 s 19 xxxxxxxxxx 19 19 19 19 18 18 20 s 20 xxxxxxxxxx 20 20 20 20 19 19 21 s 21 xxxxxxxxxx 21 21 21 21 20 20 22 s 22 xxxxxxxxxx 22 22 22 21 21 23 s 23 xxxxxxxxxx 23 23 23 22 22 24 s 24 xxxxx rnd rnd rnd 23 23 25 25(s) 25 xxxxx sat sat sat 24 24 26 26 26 xxxxx 25 rnd 27 27 27 xxxxx 26 sat 28 28 28 xxxxx 27 29 29 29 xxxxx 28 30 30 30 xxxxx 29 31 31 31 xxxxx 30 32 32 32 xx 31 33 33 33 xx 32 34 34 34 xx (rnd out of mult.) 35 35 35 xx 36 36 36 x 37 37 37 x 38 38 38 x 39 39 39 x notes: 1. srnd = symmetric round; rnd = round; sat = saturation. 2. the nbw out of the cic filter is 0.5 x f sout . if the nbw in =f s /4 and nbwout = f sout /2, then the processing gain for a decimation x 16 cic should be ~ 8 (9db or 1.5 bits) versus a/d noise, the processing gain should be 10log(bw in /bw out ). HSP50214B
3-28 in burst systems (such as tdma), time resolution is needed for quickly identifying the optimum sample point. the timing is adjusted by shifting the decimation in the dsp p to the closest sample. use of timing error in this way may yield a faster acquisition than a phase-locked loop coherent bit synchronization. finding the optimum sample point minimizes intersymbol interference. fine time resolution is needed in cdma systems to resolve different multipath rays. in cdma systems, the demands on the programmable fir can only be relieved by the resampler/interpolation halfband filters. assume the chip rate for a baseband cdma system is 1.2288mhz and procclk is limited to 55mhz. using the symmetric filter pre-sum approach, procclk limits the programmable fir to 110mips (millions of instructions per second) effective due to symmetry. if the cdma filter (loaded into the programmable fir section) requires an impulse response with a span of 12 chips, the filter at 2x the chip-rate would need 24 taps. the 24 taps would translate into 59mips = (1.2288mhz)(2)(24). to get the same filtering at 8x the chip rate would require 944mips = (1.2288mhz)(8)(96). direct 8x filtering can not be accomplished with the programmable filter alone because 944mips are much greater that the 60mips effective limit set by procclk. it is necessary to decimate down to 2x the chip rate to get a realistic number of filter taps. both interpolation halfband filters are then used to obtain the 8x cdma output. 944mips is a lot of mips. the HSP50214B gets the equivalent processing by decimating down and interpolating backup. timing nco the timing nco is very similar to the carrier nco phase accumulator section. it provides the nco driven sample pulse and associated phase information to the resampling ?ter process described in the re-sampler filter section. the timing nco does not include the sin/cos section found in the carrier nco. the top level block diagram is shown in figure 26. table 10. polyphase and interpolating halfband filter maximum clocking rates mode clock cy- cles re-sam- pler input rate (mhz) inter- polation rate output rate (mhz) bypass 0 55.00 - 55.00 polyphase filter 6 55/6 = 9.17 - 9.17 (note 3) polyphase and 1 halfband filter 13 55/13 = 4.23 2 8.46 (note 3) polyphase and 2 halfband filters 23 55/23 = 2.39 4 9.56 (note 3) 1 halfband filter 7 55/7 = 7.86 2 15.72 2 halfband filters 17 55/17 = 3.24 4 12.94 note: 3. this frequency is set by the resampler nco. figure 24c. polyphase resampler filter expanded resolution passband frequency response 2 1 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 magnitude (db) 0.0625 0.125 0.1875 0.25 0.3125 0.375 0.4375 0.5 0 frequency (relative to f s ) figure 25. generating data ready pulses for out- put data procclk/n pulse delay procclk hb2 0 3 (nv) 3 (nv) hb1 rsmplr 1 3 00 1 0 1 0 1 0 0 1 1 0 0 0 1 1 0 0 1 1 1 1 # extra pulses 3 0 bypass 0 1 1 this block generates extra data ready pulses for the new outputs from the interpolation process. pulse delay counter halfband filter #2 halfband filter #1 polyphase resampler filter resampler nco mux nv = invalid mode HSP50214B
3-29 the programmable parameters for the timing nco include an enable external timing nco sync (control word 11, bit 5), the serial word width, number of offset frequency bits (control word 11, bits 3-4), an enable offset frequency control (control word 11, bit 2), a clear nco accumulator control (control word 11, bit 1), a timing nco phase accumulator load on update control (control word 11, bit 0), the timing nco center frequency (control word 12), a timing phase offset (control word 13, bits 0-7), a timing frequency strobe (control word 14) and a timing phase strobe (control word 15). refer to the carrier synthesizer mixer section for a detailed discussion of the serial interface for the timing nco offset frequency word. a timing error detector is provided for measuring the phase difference between the timing nco and a external clock input, refclk. timing error is generated by comparing the values of two programmable counters. one counter is clocked with the timing nco carry out and the other is clocked by the refclk. the 12-bit nco divide parameter is set in control word 18, bits 16-27. the nco divide parameter is the preload to the counter that is clocked by the timing nco carry out. the 12-bit reference divide parameter is set in control word 18, bits 0-11, and is the preload for the counter that is clocked by the reference clock. figure 26 details the block diagram of the timing error generation circuit. the 16 bits of timing error are available both as a pdc serial output and as a processor read parameter. see the processor read section for more details on accessing this value. figure 27a illustrates an application where the timing error generator is used to lock the receiver samples with a transmit data rate. in this example, the receive samples are at four times the transmit data rate. an external loop ?ter is required, whose frequency error output is fed into the timing nco. this allows the loop to track out the long term drift between the receive sample rate and the transmit data clock. shift reg sync sof sofsync timing nco center frequency ? timing nco 32 32 8 mux 0 mux 0 clear phase accumulator scf sof enable sof ? reg reg + ? controlled via microprocessor interface. 5 phase offset ? phase acc ? timing phase strobe ? timing freq strobe ? number of sof bits ? + reg timing nco ph acc load on update ? reg reg sync syncin2 en ext timing nco sync ? sync carry out = run filter strobe filter phase select figure 26. timing nco block diagram reg ? controlled via microprocessor interface. figure 27. timing error generation programmable divider programmable divider reference te(15:0) carry refclk reg ? timing acc. nco phase(31:28) divide ? nco divide ? (nco divide)/2 ? - + 12 4 en ? controlled via microprocessor interface. figure 27a. timing error application programmable divider programmable divider reference te(15:0) carry tx data clk reg ? timing acc. nco phase(31:28) divide = n ? nco divide = 4n ? (nco divide)/2 ? - + 12 4 en loop filter p (refclk) to tx block (modulator) clkin/r t r t = total decimation (cic, hb filters and fir) HSP50214B
3-30 cartesian to polar converter the cartesian to polar converter computes the magnitude and phase of the i/q vector. the i and q inputs are 18 bits. the converter phase output is 18 bits (truncated) with the 16 msbs routed to the output formatter and all 18 bits routed to the frequency discriminator. the 16-bit output phase can be interpreted either as twos complement (-0.5 to approximately 0.5) or unsigned (0.0 to approximately 1.0), as shown in figure 28. the phase conversion gain is 1/2 . the phase resolution is 16 bits. the 16-bit magnitude is unsigned binary format with a range from 0 to 2.32. the magnitude conversion gain is 1.64676. the magnitude resolution is 16 bits. the msb is always zero. table 11 details the phase and magnitude weighting for the 16 bits output from the pdc. the magnitude and phase computation requires 17 clocks for full precision. at the end of the 17 clocks, the magnitude and phase are latched into a register to be held for the next stage, either the output formatter or frequency discriminator. if a new input sample arrives before the end of the 17 cycles, the results of the computations up until that time, are latched. this latching means that an increase in speed causes only a decrease in resolution. table 12 details the exact resolution that can be obtained with a ?ed number of clock cycles up to the required 17. the input magnitude and phase errors induced by normal snr values will almost always be worse than the cartesian to polar conversion. in the hsp50214, the input to the coordinate converter i/q to |r|/ ) block is 18 bits. if the signal range is large and the agc is not used, the quantization noise can become a contributing factor in the phase and frequency computations. for example, if the signal range is 84db and the maximum signal is set at full scale, the minimum signal would have only 4 bits each for i and q. in the HSP50214B, an additional data path option was added that allows the output of the 255 tap programmable fir ?ter to be routed directly to the coordinate converter. rather than having to select only 18 bits out of the available 26 bit output, all 26 bits of the fir output are routed to the coordinate converter. this change eliminates quantization effects to give more accuracy in the phase and frequency discriminator outputs. the agc settling time is not a factor because the agc is effectively bypassed for the magnitude, phase, and frequency computations. note: the most signi?ant 18 bits of the computed phase are still routed to the discriminator. table 11. mag/phase bit weighting bit magnitude phase ( o ) 15 (msb) 2 2 (always 0) 180 14 2 1 90 13 2 0 45 12 2 -1 22.5 11 2 -2 11.25 10 2 -3 5.625 92 -4 2.8125 82 -5 1.40625 72 -6 0.703125 62 -7 0.3515625 52 -8 0.17578125 42 -9 0.087890625 32 -10 0.043945312 22 -11 0.021972656 12 -12 0.010986328 0 (lsb) 2 -13 0.005483164 0 + /2 - /2 0 /2 3 /2 0000 7fff ffff 3ff f c000 0000 8000 4000 bfff i q i q ffff 3fff 4000 7fff 8000 c000 bfff figure 28. phase bit mapping of coordinate converter output table 12. mag/phase accuracy vs clock cycles clocks magnitude error (% f s ) phase error (deg.) ? phase error (% f s ) 6 0.065 3.5 2 7 0.016 1.8 1 8 0.004 0.9 0.5 9 <0.004 0.45 0.25 10 <0.004 0.22 0.12 11 <0.004 0.11 0.062 12 <0.004 0.056 0.03 13 <0.004 0.028 0.016 14 <0.004 0.014 0.008 15 <0.004 0.007 0.004 16 <0.004 0.0035 0.002 17 <0.004 0.00175 0.001 ? assumes 180 o = f s . HSP50214B
3-31 one caveat to selecting the fir outputs to be routed directly to the coordinate converter is that because the i/q samples for the coordinate conversion are chosen from before the resampler, the magnitude and phase samples will not align with the i/q samples, if the resampler or interpolation halfband ?ters are used. this optional signal routing mode was intended for fm or for burst psk where a ?ed decimation can be used. it is also applicable when resampling or timing adjustments on the demodulated samples are done in a processor following pdc. the magnitude resolution may suffer because there is no gain adjustment before computing the magnitude. if the signal is < - 90dbfs, it will be below the lsb of the magnitude output. the enable signal for gating data into the coordinate converter is either the agc data ready signal or the resampler data ready signal. if the resampler is bypassed, the agc data ready signal is used and there is a delay of 6 clock cycles between the fir data being ready and the coordinate converter block sampling it. if the resampler is enabled, its data ready signal will be delayed by 6 clocks (for the agc) plus the compute delay of the resampler block. this may cause the i/q to |r|/ output sample alignment to shift with decimation. for this reason, it is recommended that the resampler/halfband ?ter block be bypassed when using this new data path. to select the output of the 255 tap programmable fir ?ter to be routed to the coordinate converter, set control word 27, bit 13 to a logic one. for routing as in the hsp50214, set control word 27, bit 13 to a logic zero. frequency discriminator the discriminator block delays phase from the cartesian to polar section and subtracts it from the latest sample. this delay and subtract can be modeled as a programmable delay comb filter. the output of the filter is d /dt, or frequency. the transfer function of the discriminator is set by where d is the programmable discriminator delay expressed in number of sample clock delays. the discriminator output frequency is then ?tered with a programmable fir ?ter. the block diagram of the frequency discriminator is shown in figure 29. the range of delay in the discriminator is from 1 to 8 samples. modulo 2 subtraction eliminates rollover problems in the subtraction at 2 . the alias free discriminator frequency range is given by: where d is the discriminator delay de?ed in equation 21 (1 < d < 8), f sampout is the discriminator fir ?ter output sample rate and cw is the desired center frequency. when the phase multiplier is set to a value other than 2 0 , the discriminator range is reduced proportionally. the phase multiplier can be 1, 2, 4 or 8 (2 0 to 2 3 ). thus, a multiply of 2 1 reduces the range by 2, a multiply of 2 2 reduces the range by 4, and a multiply of 2 3 reduces the range by 8. the fir ?ter can be con?ured with up to 63 symmetric taps and up to 32 asymmetric taps. in the symmetric mode, the fir can be con?ured for even or odd symmetry, as well as with an even or odd number of ?ter taps. decimation is provided to allow more processing time for longer (i.e., more taps) ?ter structures. the HSP50214B offers an expanded choice of signals to be ?tered by the discriminator fir. the choices are: 1) 18 bits of delayed, and subtracted (and optionally shifted) phase. this is the discriminator fir ?ter input found in the hsp50214. 2) 18 bits of magnitude from the coordinate converter block. this was added to provide for post-detection ?tering of am signals. 3) 18 bits from the i output of the resampler/interpolation halfband ?ter block. this was added to provide for processing of ssb signals. the shift, delay, and subtract functions are bypassed for items (2) and (3). in addition to the fir input selections, the q input to the coordinate converter block can be zeroed so that the magnitude output is the magnitude of i only. again this was added to provide for processing ssb signals. (eq. 21) hz () 1z d = (eq. 22) range freqdisc cw f sampout d1 + () ? ; = + delay (1-8) 63-tap fir filter phase input phase multiplier ? discriminator delay ? discriminator en ? disc. fir decimation ? fir symmetry type ? fir symmetry ? fir taps ? fir coefficients ? freq(15:0) ? controlled via microprocessor interface. figure 29. frequency discriminator block diagram - + (2s complement) HSP50214B
3-32 the discriminator fir ?ter input selections are made in control word 27, bits 18 and 19. the bit de?itions are: 00 item (1) described above. 01 item (2) described above. 1x item (3) described above. control word 27, bit 14 is used to control the q input to the coordinate converter. the bit de?itions is: 0 i and q enabled to the i/q to r/theta block. 1 the q input to the i/q to r/theta block is zeroed. the enable signals associated with the various input selections to the discriminator fir ?ter are: 1 the data ready strobe from the coordinate con- verter block. 2 the data ready strobe from the coordinate con- verter block. the enable signals associated with the various input selections to the coordinate converter are: 3a the data ready signal to the coordinate converter block when the resampler is bypassed. this is the agc output data ready signal. 3b the data ready to the coordinate converter block when the resampler/halfband ?ters are enabled. this is the resampler halfband ?ter block output data ready signal. the discriminator input is 18 bits, and the output is rounded asymmetrically to 16 bits. the phase into the discriminator can be multiplied by 2 0 ,2 1 ,2 2 ,or2 3 (modulo 2 ) to remove psk data modulation. all programmable parameters for the frequency discriminator are set in control word 17. bits 15 and 16 are the phase multiplier which represents the shift applied to the input phase. for cw, the multiply should equal 2 0 , (00). for bpsk, qpsk, and 8psk, the multiply should equal 2 1 , (01); 2 2 , (10); or 2 3 , (11); respectively. bit 14 is used to enable or disable the discriminator. bits 11-13 set the decimation in the programmable fir ?ter. bit 10 sets the ?ter symmetry type as either odd or even, bit 9 sets whether the ?ter is asymmetric or symmetric, and bits 3-8 set the number of fir ?ter taps. bits 0-2 set the number of delays in the frequency discriminator. output section the output section routes the 7 types of processed signals to output pins in three basic modes. these basic modes are: parallel direct output, serial direct output, and the buffer ram output. the serial and parallel direct output modes were designed to output data strobes and ?eal time continuous streams of data. the buffer ram output mode outputs data upon receipt of an asynchronous request from an external dsp processor or other baseband processing engine. the use of the interrupt signal from the programmable down converter in conjunction with the request strobes from the controller ensures that data is transferred only when both the controller and the programmable down converter are ready. the buffer ram output can be operated in a first in first out (fifo) or snapshot mode with the data output either via the 8-bit processor interface or a 16-bit processor interface. parallel direct output port mode the parallel direct output port mode outputs two 16-bit words, aout and bout, of ?eal time?data. figure 30 details the parallel output circuitry. selection of the data source for the aout and bout parallel outputs is done via control word 20, bits 22-23, and 20-21, respectively. the aout port can output i, magnitude, or frequency data. the bout port can output q, phase or magnitude data. the upper bytes of aout and bout are always in the parallel direct mode. the 16-bit parallel direct mode is selected by setting control word 20, bit 25, to zero. the d a t ard y output is asserted during the ?st clock cycle of the new data on the aout bus. the rate at which the data out of the hsp50214 transitions and the rate at which d a t ard y is asserted can be different. data transitions: the transition rate of the parallel output data is dependent on which of the three types of data is selected for the aout output channel: i (real symbols), |r| (magnitude), or f (frequency). q (quadrature symbols), ?(phase), or |r| (magnitude) are available on the bout output. when selected as an output, the i q, |r|, and ?outputs transition at the symbol rate. the f (frequency) output transitions at the discriminator fir filter output rate. mux mux i mag freq q phas mag aout(15:8) a(7:0) mux ram(15:8) aout(7:0) b(7:0) mux bout(7:0) ram (7:0) 16 16 16 16 16 16 bout direct par aout direct par data source for lsb ? bout(15:8) b(15:8) a(15:8) ram (15:0) output mode data source ? output mode data source ? ? controlled via microprocessor interface. figure 30. parallel output block diagram d a t ard y (2s complement) (unsigned binary) (2s complement) (2s complement) (2s complement) (unsigned binary) HSP50214B
3-33 data ready signal assertion rate: the assertion rate of the d a t ard y signal is the data transition rate of the a out output data either [i, |r| or f]. the time alignment of parallel data words available for output are as follows: i and q are aligned in time, |r| and are time aligned, but one sample clock delayed from the associated i and q samples. datardy is asserted time aligned with and at the same rate as the data type selected for the aout output. figure 31 details the timing of the aout and d a t ard y for an aout = i data selection. note that the bout data word may be at a different rate and skewed in time with respect to d a t ard y, depending on the type of data selected for output. this is because of the timing relationships defined above, and because the datardy is driven by the aout signal. figure 32 details such a configuration. when the f (frequency) word is selected for output on aout, the datardy signal is asserted at the discriminator fir ?ter output rate, which will be a reduced rate when decimation is engaged in the ?ter. the f (frequency)s output is delayed from the associated i and q samples one sample time plus, the discriminator fir ?ter impulse response time. figure 33 details the timing of this con?uration for a fir ?ter that decimates by 4. note: the number of procclks per output symbol is not representative, but shown to be small for clarity of establishing timing with respect to the datardy signal. for each application, the relationship of the output symbol rate to procclk must be properly illustrated to determine the exact nature of the timing. figure 31. d a t ard y waveforms when i (read data) is selected as aout figure 32. datardy waveforms when |r| (magnitude) is selected as aout note: i and q are sample aligned in time. |r| and are sample aligned in time, but one sample delayed from i or q. the frequency sample is delayed in time from i or q by 1 sample time + 63 tap fir impulse response. if the fir is set to decimate and frequency is selected for aout, the datardy signal will be at the discriminator fir output (decimated) rate. figure 33. datardy waveforms when f (frequency) is selected as aout aout procclk d a t ard y i0 i1 i2 i3 i4 i5 i6 dr0 dr1 dr2 dr3 dr4 dr5 dr6 aout procclk d a t ard y |r|0 |r|1 |r|2 |r|3 |r|4 |r|5 |r|6 dr0 dr1 dr2 dr3 dr4 dr5 dr6 bout q0 q1 q2 q3 q4 q5 q6 aout procclk d a t ard y f0 (r = 4) dr0 bout q0 q1 q2 q3 q4 qn qn+1 qn+2 1 + fir delay dr-1 HSP50214B
3-34 serial direct output port mode the serial direct output port mode offers the ability to construct two serial output data streams, serouta and seroutb, from 16-bit i, q, magnitude, phase, frequency, timing error, and agc level data words. the total number of data words (1 to 8) for serial output, and the sequential order of these data word components of the serial output are programmable. each data word may be used once in either the serouta or seroutb data streams. figure 34 illustrates the conceptual implementation of the serial direct output port mode. in the serial direct mode, the output data is loaded into serial shift registers and routed to two serial output pins, serouta and seroutb. the serial output shift clock, serclk, is procclk divided by 1, 2, 4, 8, or 16. the divide down ratio is programmed using control word 20, bits 14-16. the data is shifted out on the rising edge of the internal serclk. the external clock polarity of serclk is programmable via control word 20, bit 18. a sync signal is provided for detection of the start or end of each word in the serial sequence. control word 20, bit 17, sets the sersync signal location as either preceding the msb (typical for interfacing with microprocessors) or following the lsb (typical for interfacing to d/a converters). control word 20, bit 19, sets the sersync polarity as active low or high. the lsb of each data word can be configured as either the true lsb data, or set at a fixed logic ? or ? for use as a tag bit. control word 20, bits 0-13 set the lsb of each of the 7 types of data words that can be configured in the serial output stream. control word 19, bits 21-24 set the number of serial data words that will be linked to form the serial outputs. up to 7 data words can be linked to form the serial output. serouta and seroutb will have an identical number of words in the serial output streams. the 16-bit i, q, magnitude, phase, frequency, timing error, agc level, and ?eros?data words are loaded into their respective shift registers. the magnitude and agc level data word are unsigned binary format with a leading zero, while the remaining signals are 2s complement format. any of the eight data sources can be selected as the first serial word for serouta or seroutb. control word 19, bits 25-30 set the data type for the first serial word for serouta and seroutb. the three bit data type identifier is shown both in table 13 and in figure 34, to the right of the controls for the cross matrix switch. serial output data word sequences are formed by linking data words by programming the data source for each shift requesters shift input signal. this programming links the shift registers together in one or two serial chains. thus, the control word 19 term ?ink follows x data? where x is one of the seven data types. once the data source data word is selected (by programming a three bit word representing one of the data types into control word 19, bits 25-27 (serouta), and 28-30 (seroutb)), the process for identifying the next word is to select a three bit data type identifier which represents the data type to follow the source data type. program these bits into the control word 19 field representing the ?ink following x data? where x = the source data type, defines the second word in the sequence. likewise, the third data word is linked by selecting the control word 19 bits that identify the ?ink following x data? where x = the data type of the second word in the serial chain. the process continues until all the desired data words have been linked. note: i and q are sample aligned in time. |r| and are sample aligned in time, but one sample delayed from i or q. the frequency sample is delayed in time from i or q by 1 sam- ple time + 63 tap fir impulse response. if the fir is set to decimate, the fir output will be repeated every sample time until a new value appears at the filter output. (i.e., the frequency samples are clocked out at the i, q sample rate regardless of decimation.) two examples will illustrate the process of configuring a serial output using the serial output mode. the serial data stream looks like: table 13. linking control words for serial output data type identifier data type 000 i data 001 q data 010 magnitude (mag) data 011 phase (phas) data 100 frequency (freq) data 101 timing error (timer) data 110 agc gain 111 zeros serouta: control word 19 field start i data word > serouta source data = 000 q data word > link following i data = 001 data word > link following q data = 011 zero data word > link following data = 111 end > seroutb: control word 19 field start |r| data word > seroutb source data = 010 f data word > link following |r| data = 100 te data word> link following f data = 101 agc data word > link following te data = 110 end > HSP50214B
3-35 figure 34. serial output formatter block diagram i data serial output tag bit ? q data serial output tag bit ? magnitude data serial output tag bit ? phase data serial output tag bit ? frequency data serial output tag bit ? agc data serial output tag bit ? timing error data serial output tag bit ? mux shift reg i (15:0) q (15:0) |r| (15:0) (15:0) f (15:0) te agc data source for serouta ? link following i data ? link following q data ? link following mag data ? link following phase data ? link following freq data ? link following timing data ? data source for seroutb ? xxx source 000 i 001 q 010 mag 011 phase 100 frequency 101 timing error 110 agc 111 num of ser word links in a chain ? programmable divider serial out clock divider ? serial output sync position ? serial output clock polarity ? serial output sync polarity ? serclk sersync procclk shift reg shift reg shift reg shift reg shift reg shift reg cross switch matrix shift reg seroutb source link following agc data ? 6 5 4 3 2 1 0 serial output shift register 6 5 4 3 2 1 0 zero (15:0) (15:0) serouta seroutb reg reg reg reg reg reg reg reg follows i shift reg follows q shift reg follows |r| shift reg follows f shift reg follows te shift reg follows agc shift reg serouta source follows shift reg serial output shift register cross matrix switch ? controlled via microprocessor interface polarity is programmable zero (2s comp) (2s comp) (2s comp) (2s comp) (2s comp) (o; unsigned binary) (o; unsigned binary) HSP50214B
3-36 serial output con?uration example 1: it is desired to output the i data word, followed by the q data word, followed by the phase data word on the serouta output. similarly, it is desired to output the magnitude data word followed by the frequency data word, followed by the timing error data word, followed by the agc level data word on the seroutb output. table 14 illustrates how control word 19 should be programmed. note: because all but the first data word in the serial output is iden- tified by the data type that it follows, seroutb can only be fully independent of the sequence in serouta if it does not use any of the same data word types. this implies a partition as described in example 1. once a data word that is used in serouta is called out in seroutb, the remaining se- quence in seroutb will be identical to that portion of se- routa sequence that follows the duplicate data type. this follows from using the ?ink follows ?ata type data for word linkage. note: each type of data word should be used only once in each data stream. if the ?ink following i data is programmed with the data type identifier for i , then the part will repeat the i data word until all of the data word locations are filled. in ex- ample 1, if bits 20-18 were erroneously programmed to 000 (i data) then the serouta would be four sequential repeats of the i data word. serial output con?uration example 2: it is desired to output only three data words on each serial output. the i data word, followed by the q data word, followed by the magnitude data word is to be output on serouta. the q data word followed by the magnitude data word, followed by the one other data word to be output on seroutb. the choices for the remaining data word in the seroutb signal are: phase, frequency, agc level and timing error. table 15 illustrates how control word 19 should be programmed. the serial data stream looks like: as shown by this example, once q was linked to |r| in the serouta chain, the seroutb chain must have |r| following q, if q is selected. figure 35 illustrates the construction of the serial output streams. if the serial data stream was changed to be a length of four data words, then, by default, the serouta would be whatever is selected for seroutb data word 3. seroutb would need to identify the fourth data word. thus, serouta and seroutb are not fully independent because they share the q data word (and by default, the magnitude follows q data link and whatever is selected for data word 3 to follow magnitude data in seroutb). the other signals provided with the serouta and seroutb are the sersync and the serclk. the sersync signal can be programmed in either early or late sync mode. the sync signal is pulsed active low or active high for each information word link of the chain of data created using control word 19. figure 36 shows the four possible con?urations of sersync as programmed using control word 20. as previously discussed, control word 20, bits 17 and 19, set the functionality of the lsb of each data word. these bits may be programmed to be either a logic ?? logic ??or as normal data. the ?ed states are designed to allow the microprocessor to synchronize to the serial data stream. table 14. example 1 serial output control settings control word 19 bit position function bit value result 30-28 serouta data source 000 (i) 27-25 seroutb data source 010 (|r|) 24-21 number of serial word links in a chain 100 (4) 20-18 link following i data 001 (q) 17-15 link following q data 011 ( ) 14-12 link following |r| data 100 ( f ) 11-9 link following data 111 (zeros) 8-6 link following f data 101 (timing) 5-3 link following agc data xxx (n/a) 2-0 link following timing error data 110 (agc) table 15. example 2 serial output control settings control word 19 bit position function bit value result 30-28 serouta data source 000 (i) 27-25 seroutb data source 001 (q) 24-21 number of serial word links in a chain 011 (3) 20-18 link following i data 001 (q) 17-15 link following q data 010 (|r | ) 14-12 link following |r| data tbd tbd 11-9 link following data xxx (n/a) 8-6 link following f data xxx (n/a) 5-3 link following agc data xxx (n/a) 2-0 link following timing error data xxx (n/a) serouta: control word 19 field start i data word > serouta source data = 000 q data word > link following i data = 001 |r|data word > link following q data = 010 end > seroutb: control word 19 field start q data word > seroutb source data = 001 |r|data word > link following q data = 010 tbd data word> link following |r| data = tbd end > HSP50214B
3-37 the serial direct output can be programmed to output less than 16 bits. new output data preempts old output data, so if sersync is programmed to precede the msb, then data will shift out until new data comes along. note that if sersync is programmed to follow the lsb, then a sync will never occur. buffer ram output port the buffer ram parallel output mode utilizes a ram to store output data for future retrieval by either the 8-bit microprocessor that is configuring the pdc or by a 16-bit baseband processing engine (which could also be a microprocessor). data is output from the ram only on request and can be obtained from either the 8-bit p interface or from a 16-bit interface that uses the two lsbytes of aout and bout. the ram holds up to eight 80-bit sample sets. each sample set includes 16 bits of each i, q, magnitude, phase, and frequency data. the ram samples are mapped as shown in table 16. the buffer ram controller supports both fifo and snapshot modes. figure 35. example 2 serial output data stream figure 36. valid sersync configuration options serouta the remaining choices for the third link on seroutb are: control word 19, bits 24-21 = 011 note: once magnitude is identi?d to follow q, data word 1 data word 2 data word 3 i q magnitude seroutb data word 1 data word 2 data word 3 q magnitude it must be that way on both serial outputs. (3 data words in each serial output) phase, frequency, agc level, and timing error tbd 15 14 data shift msb first msb word3 early sersync mode ?ormal ?nverted 0 1 2 late sersync mode ?ormal ?nverted ?? msb word2 1 15 14 1 2 2 15 14 ?? msb word1 1 2 lsb word2 lsb word1 ?? 2 01 2 2 3 2 3 sersync precedes msb sersync follows lsb 0 0 0 1 1 lsb word0 table 16. ram data storage map ram sample set i data (000) q data (001) |r| data (010) data (011) f data (100) 0i 0 (15:0) q 0 (15:0) |r| 0 (15:0) 0 (15:0) f 0 (15:0) 1i 1 (15:0) q 1 (15:0) |r| 1 (15:0) 1 (15:0) f 1 (15:0) 2i 2 (15:0) q 2 (15:0) |r| 2 (15:0) 2 (15:0) f 2 (15:0) 3i 3 (15:0) q 3 (15:0) |r| 3 (15:0) 3 (15:0) f 3 (15:0) 4i 4 (15:0) q 4 (15:0) |r| 4 (15:0) 4 (15:0) f 4 (15:0) 5i 5 (15:0) q 5 (15:0) |r| 5 (15:0) 5 (15:0) f 5 (15:0) 6i 6 (15:0) q 6 (15:0) |r| 6 (15:0) 6 (15:0) f 6 (15:0) 7i 7 (15:0) q 7 (15:0) |r| 7 (15:0) 7 (15:0) f 7 (15:0) note: i and q are sample aligned in time. |r| and are sample aligned in time, but one sample delayed from i or q. the frequency sample is delayed in time from i or q by 1 sample time + 63 tap fir impulse response. if the fir is set to decimate, the fir output will be repeated every sample time until a new value appears at the filter output. (i.e., the frequency samples are clocked out at the i, q sample rate regardless of decimation.) HSP50214B
3-38 the fifo mode allows the processor to service the interface only when enough samples are present in the ram. this mode is provided so that the processor does not have to service the pdc every output sample. an interrupt, intrrpt, is asserted when the desired number of samples are available. the pdc can be programmed to assert the interrupt when up to 7 samples are available. control word 21, bit 15 is used to set the buffer ram controller to the fifo mode, while control word 21, bits 12-14 set the number of ram samples to be stored (0 to 7) before the interrupt ( intrrpt) is asserted. control word 20, bit 24 determines whether the ram output interface is the 8-bit microprocessor interface or the 16-bit processor interface. in the 16-bit interface the msbyte is sent to aout(7:0) while the lsbyte is sent to bout(7:0). the intrrp output signal goes low for 8 procclk cycles when the number of samples in the buffer ram (depth) reaches the programmed depth. the depth of the ram is calculated using equation 23. a dsp microprocessor or the data processing engine can use the intrrp signal to know that the ram is ready to be read. fifo operation via 16-bit processor interface figure 37 shows the conceptual con?uration of the 16-bit processor interface. this interface looks like a 16-bit processor read-only microprocessor interface. the sel(2:0) lines are the address bus and the oeal and oebl lines are the read lines. the address is decoded as shown in table 17. use of the 16-bit interface for buffer ram output requires control word 20, bit 25, to be set to a logic ??and control word 20, bit 24, to be set to a logic ?? once the control word 20 has been set to route data to aout(7:0) and bout(7:0), then the microprocessor must place a value on the pdc input pins sel(2:0), to choose which data type will be output on aout(7:0) and 6bout(7:0). table 17 de?es the data types in terms of sel(2:0). with the control lines set, the selected data is read msbyte on aout(7:0) and lsbyte on bout(7:0) when oeal and oebl (are low). new data only read when oebl goes low, so use p for 8- bit modes. programming sel(2:0) = 110 outputs a 16-bit status signal on aout and bout. the fifo status includes full, empty, fifo depth, and readyb. these status signals are de?ed in table 18. (eq. 23) d ram addr write addr read () 1 ] mod8 [ = table 17. buffer ram output select definitions sel(2:0) output data type 000 i data 001 q data 010 magnitude 011 phase 100 frequency 101 unused 110 memory status 111 reading this address increments to the next sample set table 18. status bit definitions aout bit location information (7:5) fifo depth - when in fifo mode, these bits are the current depth of the fifo. 4 empty - when in fifo mode, the fifo is empty, and the read pointer cannot be ad- vanced. active high. 3 full - when in fifo mode, the fifo is full, and new samples will not be written. active high. 2 readyb - when in fifo mode, the output buff- er has reached the programmed threshold. in the snapshot mode, the programmed number of samples have been taken. active low. 1-0 gnd note: in the status output, bout(7:0) are all gnd. figure 37. 16-bit microprocessor interface buffer ram mode block diagram |r| q ? dual ram port 16 address ?et of words sequencer 16 16 16 data input data output 16 i incr wr rd incr write sequencer |r| q ? i status 0 1 2 3 4 6 oebl sel(2:0) new output data data mux mux procclk HSP50214B
3-39 figure 38 shows the interface between a 16-bit microprocessor (or other baseband processing engine) and the buffer ram output section of the programmable down converter, con?ured for data output via the parallel outputs aout and bout. in the 16-bit microprocessor interface con?uration, the buffer ram pointer is incremented when the processor reads address sel(2:0) = 7 and oebl = 0. after reset, the fifo must be incremented to read the first sample set. this is because the ram read and write pointers cannot point to the same address. thus, the fifo pointer must move to the next address before reading the next set of data (i, q, |r|, , and f ) samples. 4 procclk cycles are required after an increment before reading can resume. the fifo write pointer is reset to zero (the first data sample) when control word 22 is written to via the 8-bit microprocessor interface. see the microprocessor read section for more detail on how to obtain the buffer ram output with this technique. figure 39 shows the timing diagram required for parallel output operations. in this diagram, only the i, q and frequency data are taken from each sample before incrementing to the next sample. figure 39 assumes that the pointer has already been incremented into a sample. note: for the very first sample read, the pointer must be incre- mented first and 4 procclks must pass before this sample can be read. figure 39 shows intrrp going low before the fifo is read. the fifo can be read before the number of samples reaches the intrrp pointer. the number of samples in the fifo must be monitored by the user via a status read. suppose the depth of the buffer ram output section is programmed for an intrrp pointer depth of 4. if the output is at 4 times the baud rate, the processing routine for the microprocessor may only need to read the buffer when the buffer ram had 4 samples since processing is usually on a baud by baud basis. figure 40 illustrates the conceptual view of the fifo as a circular buffer, with the write address one step ahead of the read address. figure 40a deals with clockwise read and write address incrementing. the fifo depth is the difference between the write and read pointers, modulo 8. figure 40b illustrates a fifo status of full, while figure 40c illustrates a fifo empty status condition. figure 40d illustrates a programmed fifo depth of 3 and the intrrp signal indicating that the buffer has suf?ient data to be read. following some simple rules for operating the fifo will eliminate most operational errors: rule #1: the read and write pointers cannot point at the same address (the circuitry will not allow this). rule #2: the fifo is full when the write address = read address -1 (no more data will be written until some samples are read or the fifo is reset). rule #3: the fifo is empty when the read address = (write address -1) (the circuitry will not allow the read pointer to be incremented). rule #4: you cannot write over what you have not read. rule #5: reset places the write address pointer = 000 and read address pointer = 111. rule #6: the best addressing scheme is to read the fifo until it is empty. this avoids erroneous intrrp assertions and provides for simple fifo depth monitoring. the interrupt is generated when the depth increments past the threshold. HSP50214B intrrp oeal oebl pdc 16-bit p sel(2:0) bout(7:0) aout(7:0) figure 38. interface between a 16-bit microproces- sor and pdc in fifo buffer ram mode int rd d(15:8) d(7:0) a(2:0) 1234 1234 5678 0147 0 1 intrrp oeal, oebl sel(0:2) iqfr i q aout(7:0), bout(7:0) procclk 8 clks > 4 clks figure 39. timing diagram for pdc in fifo mode with outputs i, q, and frequency sent to aout(7:0) and bout(7:0) HSP50214B
3-40 fifo operation via 8-bit processor interface the buffer ram output may also be accessed via the 8-bit microprocessor interface c(7:0). figure 41 shows the conceptual con?uration of the 8-bit processor interface. control word 20, bit 24 must be set to 0 in order to obtain buffer ram data to this output. the microprocessor read section describes how to read the data from each sample out of the c(7:0) interface. recall that intrrp stays low for 8 pr occlk cycles. the fifo can be read before the intrrp signal goes low; the number of samples in the fifo must be monitored by the user. the timing relationship of the intrrp to the snapshot data is shown in figure 42. the read pointer of the fifo is incremented when control word 23 is written to. the data cannot be read from the next sample until 4 procclks after the buffer ram pointer has been incremented. control word 22 is used to reset the read and write pointers of the buffer ram output to the first sample to 000 and 007 for write and read respectively. figure 40. fifo register operation read write fifo depth write read read write write read ready a: fifo depth is (write - read) b: fifo full is when (write - read) = 7 c: fifo empty is when (write - read) = 1 d: fifo ready is when (write - read) > depth 1 2 3 4 5 67 0 1 2 3 4 5 67 0 1 2 3 4 5 67 0 1 2 3 4 5 67 0 HSP50214B
3-41 snap shot operation the snapshot mode takes sets of adjacent samples at programmed intervals. it is provided for tracking algorithms that do not require processing of every sample, but do require sets of adjacent samples. for example, bit sync algorithms have narrow loop bandwidths that may not need to be updated every sample. computing the bit phase may require 4 adjacent samples at 2 times the baud rate. the snapshot mode allows the processor to implement the tracking algorithms for high speed data without having to handle every data sample. the interval from the start of one snapshot to the start of a second snapshot is programmed into bits 11-4 (where bit 11 is the msb) of control word 21. the actual interval is the value programmed plus 1. if bits 11-4 = 11111111, then the interval is set to 256. if sample sets are to be taken every 4 samples, then bits 11-4 = 00000011. figure 43 shows the relationship between the snapshot samples and the snapshot interval. timing |r| q ? dual ram port 16 address ?et of words sequencer 16 16 16 data input data output 16 i incr wr rd incr write sequencer |r| q ? i status 0 1 2 3 4 new data mux figure 41. 8-bit microprocessor interface buffer ram mode block diagram output data 0 1 0 1 0 1 0 1 write address ? control r0 r1 r2 a0 a1 r0 a1 lsbyte msbyte 2 3 int(15:0) int(22:16) agc a(2:0) rd r2, r1, r0 0: i;q (2s comp) 1: |r|; (o; unsigned binary; 2s comp) 2: ? (2s complement) 4: input agc (o; unsigned binary) 5: agc; timing (o; unsigned binary; word 23 mux mux mux mux mux a2, a1, a0 a1 a2 a0 r2 r1 r0 a2 a1 a0 selection 000000 ram i lsb 000001 ram i msb 000010 ram q lsb 000011 ram q msb 001000 ram |r| lsb 001001 ram |r| msb 001010ram lsb 001011ram msb 010000ram ? lsb 010001ram ? msb 0 1 1 x x x not used 100000 input integ lsb 100001 input integ nmsb 100010 input integ msb 101000 agc lsb 101001 agc msb 101010 timing lsb 101011 timing msb 1 1xxxx not used x x x 1 1 1 status 2s comp) figure 42. ram load sequence procclk d a t ard y (i/q selected) d a t ard y (r/ selected) intrrp writes to snapshot ram i/q r/ iqr ? delay to d a t ard y depends on length of fir if freq chosen figure 43. snap shot sampling 01234 63 62 64 65 interval = 64 # samples = 4 adjacent samples HSP50214B
3-42 the pdc begins to ?l the buffer each time an interval number of samples have passed. the number of sample sets the pdc writes into the buffer and is programmed into bits 3-0 of control word 21. the number of samples stored is the programmed value and may be from 1 to 8 sample sets. a sample set consists of i, q, |r|, and ? . in snap shot operations, the buffer is read the same as for fifo operations. figures 37 and 39 describe the design blocks and timing required to output data on aout(7:0) and bout(7:0). table 17 summarizes the selectable output signals. the method for reading data through the microprocessor section in snap shot mode is identical to the method described in the fifo mode subsection and the microprocessor read section. avoiding timing pitfalls when using the buffer ram output port in snapshot mode, the whole buffer is written whenever the interval counter has timed-out. after time-out, old data can be written over. thus, the data contained within the buffer must be retrieved before time-out to avoid data loss. it may be desirable to disable the intrrpt into the controlling microprocessor during read cycles to avoid the generating extra interrupts. figure 44 details how the write address can trigger extra interrupts. care must be taken to either read suf?ient data out of memory or reset the addressing to ensure that a complete set of data is the cause of the interrupt. microprocessor write section the microprocessor write section uses an indirect addressing scheme where a 32-bit data word is first loaded in a four 8-bit byte master registers using four writes via c(7:0). the desired destination register address is then written to another address using c(7:0). writing this address triggers a circuit that generates a pulse, synchronous to clock, that loads the destination register. the sync circuits and data words are synchronized to different clocks, clkin or procclk, depending on the destination registers. a(2:0) determines the destination for the data on bus, c(7:0). table 19 shows the address map for microprocessor interface. figure 45 shows the control register loading sequence. the data in c(7:0) and address map in a(2:0) is loaded into the pdc on the rising edge of wr and is latched into the master register on the rising edge of wr and a(2:0) = 100. four clocks must pass before loading the next control word to guarantee that the data has been transferred. some registers can be loaded (i.e., transferred from the master register to a configuration register or from a holding register to an active register) by initiating a sync. for example, to load the agc gain, the value of the agc gain is first loaded into the holding registers, then a transfer is initiated by syncin2 if control word 8, bit 29 = 1. this allows the agc gain to be loaded by detecting a system event, such as a start of a new burst. bit 20 of control word 0 has the same effect on the carrier nco center frequency for assertion of syncin1, except it transfers from a dedicated holding register - not the master register. suppose a (0018d038)h needs to be loaded into control word 0, then table 20 details the steps to be taken. time address wr rd wr reest wr rd write a: normal read/write sequence time address wr rd write rd b: false triggered interrupt read/write sequence intrrp intrrp intrrp intrrp intrrp intrrp a complete set of 3 data samples is in memory at intrrp the third interrupt has only 1 new data entry figure 44. avoiding false intrrp assertions (instead of 3) at intrrp wr rd wr table 19. definition of address map a2-0 register description 0 holding register 0. transfers to bits 7-0 of the 32-bit des- tination register. bit 0 is the lsb of the 32-bit register. 1 holding register 1. transfers to bits 15-8 of a 32-bit desti- nation register. 2 holding register 2. transfers to bits 23-16 of a 32-bit des- tination register. 3 holding register 3. transfers to bits 31-24 of a 32-bit des- tination register. bit 31 is the msb of the 32-bit register. 4 this is the destination address register. on the fourth clk following a write to this register, the contents of the holding registers are transferred to the destination reg- ister. all 8 bits written to this register are decoded into the destination register address. the con?uration destina- tion address map is given in the tables in the control word section. 5 selects data source for reading. see microprocessor read section. HSP50214B
3-43 microprocessor read section the microprocessor read uses both read and write procedures to obtain data from the pdc. a write must be done to location 5 to select the source of data to be read. the read source is determined by the value placed on the lower three bits of c(7:0). the output from a particular read code is selected using a read address placed on a(2:0). the output is sent to c(7:0) on the falling edge of rd. if the read address is equal to 111, the read code is ignored, and the status bits shown in table 22 in the output section is sent to c(7:0). this state was provided so that the user could obtain the status bits quickly. refer to the timing diagram in figure 46. suppose the input level detector has a hex value of (321af5)h, then table 21 details the steps to be taken. table 20. example processor write sequence step a(2:0) c(7:0) comment 1 000 0011 1000 loads 38 into master register (7:0) on rising edge of wr. 2 001 1101 0000 loads d0 into master register (15:8) on rising edge of wr. 3 010 0001 1000 loads 18 into master register (23:16) on rising edge of wr. 4 011 0000 0000 loads 00 into master register (31:24) on rising edge of wr. 5 100 0000 0000 load ?018d038 into con?u- ration control register 0. 6 wait 4 clks. wr 01234 load configuration load address of target control register and 2 clk = a2-0 c7-0 load next config- register 0 1 23 4 data wait 4 clks (procclk, clkin) uration figure 45. loading the control registers with 32-bit control words lsb msb add table 21. processor read sequence (input level selector) step a(2:0) c(7:0) comment 1 101 100 write read code, 100 to address 5, wr pulled high to generate rising edge. 2 000 1111 1000 (f4)h drop rd low, read agc lsb. 3 001 0001 1010 (1a)h pull rd high, then drop low, read agc nlsb. 4 010 0011 0010 (32)h pull rd high, then drop low, read agc msb. table 22. definition of address map read code c(2:0) status type read address a(2:0) 000 buffer ram i and q 000- i lsb. 001- i msb. 010- q lsb. 011- q msb. see output section. 001 buffer ram output (|r| and ) 000- mag lsb (7-0). 001- mag msb (15-8). 010- phase lsb (7-0). 011- phase msb (15-8). see output section. 010 buffered frequency 000- freq lsb. 001- freq msb. see output section. 011 not used 100 input level detector input agc 000- input agc lsb (0-7). 001- input agc nlsb (8-15). 010- input agc msb (16-23). wr load address of target control register proclk a2-0 c7-0 assert rd to enable data output on c0-7 read code c(2:0) three-state input bus rd 5 figure 46. reading the control registers using a latch code equal to a 5, a read address and a read code read address output data c(7:0) HSP50214B
3-44 applications composite filter response example for this example consider a total receive band roughly 25mhz wide containing 124 200khz wide fdm channels as shown in figure 47. the design goal for the pdc is to tune to and ?ter out a single 200khz fdm channel from the fdm band, passing only baseband samples onto the baseband processor at a multiple of the 270.8 kbps bit rate. rf/if considerations the input frequency to the pdc is dependent on the a/d converter selected, the rf/if frequency, the bandwidth of interest and the sample rate of the converter. if the a/d converter has suf?ient bandwidth, then undersampling techniques can be used to downconvert if/rf frequencies as part of the digitizing process, using the pdc to process a lower frequency alias of the input signal. for example, a 70mhz if can be sampled at 40mhz and the resulting 10mhz signal alias can be processed by the pdc to perform the desired downconversion/tuning and ?tering. if the if signal is less than 1/2 the sample frequency then standard oversampling techniques can be used to process the signal. of the two techniques, only undersampling allows part of the down conversion function to be brought into the digital domain just through sampling, assuming that a sampling frequency can be found that keeps the alias signals low and that the a/d converter has the bandwidth to accept the unconverted analog signal. 101 agc data and timing error agc (must write to location 10 to sam- ple) 000- agc lsb (lower 8 bits of linear control word 3 used by multiplier) mmmmmmmm lsb. 001- agc msb (4 shift control bits and first three bits of linear) control word oeeeemmm msb. this yields 11 bits of the linear control mantissa. 010- timing error lsb, not stabi- lized. 011- timing error msb, not stabi- lized. 110 not used 111 not used don? care status 111- status (6:0) consisting of (6:4)-fifo depth when output is in fifo buffer ram output mode. (3)-empty signalling the fifo is empty and the read pointer cannot be advanced (active high). (2)-full signalling the fifo is full and new samples will not be written (active high). (1)-readyb output buffer has reached the programmed threshold in fifo mode or the programmed number of samples have been taken in snapshot mode. (active low). (0)-integration has been com- pleted in the input level detector and is ready to be read. (active high). table 22. definition of address map (continued) read code c(2:0) status type read address a(2:0) figure 47. receive signal frequency spectrum frequency ? frequency 124 channels ?? 200khz channel HSP50214B
3-45 pdc con?uration for this example, the pdc is con?ured as follows: clkin: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39mhz mode: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .gated input format: . . . . . . . . . . . . . as required by digital source carrier nco fc: . . . . . . . . as determined by channel freq. carrier nco phase offset: . . . . . . . . . . . . . . . . . . . . . . . . .0 carrier nco offset frequency: . . . . . . . . . . . . . . . .disabled cic filter: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . enabled decimation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 procclk: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28mhz half band filters: . . . . . . . . . . . . . . . . . . hb3 and 5 enabled fir filter: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . gsmtemp ?e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . f s = 541.667khz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .decimation = 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .passband: 90khz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . transition band: 25khz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . passband atten: 3db . . . . . . . . . . . . . . . . . . . . . . . . . stop band atten: 111.25713 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .fir order: 90 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . fir symmetry: even resampling filter: . . . . . . . . . . . . . . . . . . . . . hb1 enabled the basis for this con?uration is: sampling rate: select a high rate procclk output rate: 1.083mhz (4x bit rate; 8x baud rate) cic filtering: primarily rate reduction (39/18 = 2.166mhz). hb filtering: flat passband with rate reduction by 4 - low enough (541.66khz) for suf?ient fir taps to be used. fir filtering: primary shaping ?ter/set ?al out of band suppression. polyphase/halfband filtering: interpolate by two to output 8x baud rate or 4x bit rate. the cic and halfband ?ter responses are shown in figures 48a and b. the composite filter response constrained primarily by halfband filter 5 and the fir filter, are shown in figure 49a-c. for a more detailed discussion of design approaches and trades when designing with the pdc, refer to an9720 [3], ?alculating the maximum processing rates of the pdc? references for intersil documents available on the web, see http://www.intersil.com/ intersil answerfax (321) 724-7800. [1] hsp50210 data sheet, intersil corporation, answerfax doc. no. 3652. [2] cellular radio and personal communications: a book of selected readings , theodore s. rappaport, 1995 by ieee, inc. [3] an9720 application note, intersil corporation, ?alculating maximum processing rates of the pdc (HSP50214B)? answerfax doc. no. 99720. [4] fo-007 block diagram of hsp50214. HSP50214B
3-46 figure 48a. cic filter response figure 48b. hb3 filter response figure 49a. hb5 filter response figure 49b. 255 fir tap filter response figure 49c. composite filter response figure 49d. pdc filter frequency spectrums example (normalized to same scale) magnitude (db) frequency 10 -10 -30 -50 -70 -90 -110 -130 f s r f s = cic input rate magnitude (db) frequency 10 -10 -30 -50 -70 -90 -110 -130 f s = cic input rate f s r magnitude (db) frequency 10 -10 -30 -50 -70 -90 -110 -130 f s = cic input rate f s r magnitude (db) frequency 10 -10 -30 -50 -70 -90 -110 -130 f s = cic input rate f s r magnitude (db) frequency 10 -10 -30 -50 -70 -90 -110 -130 f s = cic input rate f s r HSP50214B
3-47 con?uration control word de?itions note that in the configuration control register tables, some of the available 32 bits in a control word are not used. unused bits do not need to be written to the master register. if the destination only has 16 bits, then only 2 bytes need to be written to the master register. figure 45 details the timing for proper operation of the microprocessor write section. bits identified as ?eserved?should be programmed to a zero. note: clkin or procclk must be present to properly load control words. note in the header which is applicable. control word 0: chip configuration, input section, cic gain (synchronous to clkin) bit position function description 31-21 reserved reserved. 20 carrier nco external sync enable 0- the syncin1 pin has no effect on the carrier nco. 1- when the syncin1 pin is asserted, the carrier center frequency and phase are updated from the holding registers to the active register. also, if bit 0 of this word is active, the carrier phase accumulator feedback will be zeroed to set the carrier nco to a known phase, allowing the ncos of multiple parts to be initialized and updated synchronously. 19 cic external sync enable 0- the syncin1 pin has no effect on the cic ?ter. 1- when the syncin1 pin is asserted, the decimation counter is loaded, allowing the decimation counters in multiple chips to be synchronized. when cw27 bit-22 is set to a 1, syncin1 will reset both front end and back end circuitry. 18 input format 0- twos complement input format. 1- offset binary input format. 17 input mode 0- input operates in gated mode. 1- input operates in interpolated mode. 16-13 cic shift gain these bits control the barrel shifter at the input to the cic ?ter. these bits are added to the gainadj(2:0) pins to determine the total shift. the sum is saturated at 15. see the cic decimation filter section for values to be programmed in this ?ld based on cic ?ter decimation. bit 16 is the msb. sg = floor [39 - (number of input bits) - 5log 2 (r)] for 4 < r < 31 sg = 15 for r = 4. sg = 0 for r = 32. 12-7 cic decimation counter preload these bits control the decimation in the cic ?ter. program this ?ld to r-1, where r is the desired dec- imation factor in the ?ter. the decimation factor range is 4-32. see cic filter section for effective deci- mation range relative to the cic shift gain value. bit 12 is the msb. while this ?ld allows values from 0 - 63, the valid values are in the range from 4- 32. 6 cic bypassed active high, this bit routes the output of the input shifter to the output of the cic with no ?tering. when the cic ?ter is bypassed, clkin must be at least twice the input sample rate (eni should be tog- gled to achieve this). when the cic ?ter is bypassed, the bottom 24 bits of the barrel shifter output are routed to the halfband ?ters. 5-4 number of offset frequency bits 00 - 8 bits. 01 - 16. 10 - 24. 11 - 32. 3 syncout clk select this bit selects whether the syncout signal is generated from clkin of from procclk 0- clkin. 1- proclk. 2 clear phase accum 0- enable accumulator in carrier nco. 1- zero feedback in accumulator. 1 carrier nco offset frequency enable when set to 1, this bit enables the offset frequency word to be added to the center frequency control word. the offset is loaded serially via the cof and cofsync pins. 0 carrier nco load phase accum on update when this bit is set to 1, the p update to the carrier nco frequency or an external carrier nco load using syncin1 will zero the feedback of the phase accumulator, as well as update the phase or frequen- cy. this function can be used to set the nco to a known phase synchronized to an external event. HSP50214B
3-48 control word 1: input level detector (synchronous to clkin) bit position function description 31 reserved reserved. 30 integration mode 0- integration of magnitude error stops when the interval counter times out. 1- integration runs continuously. when the interval counter times out, the integrator reloads, and the re- sults of the integration is sent to a register for the processor to read. 29-14 integration interval these are the top 16 bits of the 18-bit integration counter, icprel. icprel = (n)/4+1; where n is the de- sired integration period in clkin cycles, de?ed as the number of input samples to be integrated. n must be a multiple of 4: [0, 4, 8, 12, 16.... , 2 18 ]. bit 29 is the msb. if the input is interpolated, then the zeros must be accounted for, as they will be added to the threshold! if the gated input mode is used, the same input sample will be accumulated multiple times. 13-0 input threshold input magnitude threshold. bits 12-0 correspond to input bits 12-0. the magnitude of the input is added to this threshold, where the threshold is a signed number. bit 13 is the msb. control word 2: input level detector start strobe (synchronized to clkin) bit position function description n/a start input level detector agc integrator writing to this location starts/restarts the input agc error integrator. the integrator will either restart or stop when the integration interval counter times out depending on bit 30 of control register 1 (see mi- croprocessor write section). control word 3: carrier nco center frequency (synchronized to clkin) bit position function description 31-0 carrier center frequency these bits control the frequency of the carrier nco. the frequency range of the nco is f s /2 where f s is the input sample rate. the bits are computed by the equation n = (f nco /f s )*2 32 . bit 31 is the msb. this location is a holding register. after loading, a transfer to the active register is done by writing to con- trol word 5 or by generating a syncin1 with control word 0, bit 20 set to 1. the carrier nco only up- dates eni is active. note: in the HSP50214B, if the syncin1 occurs when the nco is not updating, the load signal is held internal to the part until t he next nco update. control word 4: carrier phase offset (synchronized to clkin) bit position function description 31-10 reserved reserved. 9-0 carrier phase offset these bits, po, are used to offset the phase of the carrier nco. the bits are computed by the equation po = int[(2 10 off )/ 2 ] hex ;(- < off < ) for 10-bit 2s complement representation or from 0 to 2 for 10- bit offset binary representation. bit 9 is the msb. this location is a holding register. after loading, a trans- fer to the active register is done by writing to control word 6 or by generating a syncin1 with control word 0, bit 20 set to 1. the carrier nco only updates when eni is active. control word 5: carrier frequency strobe (synchronized to clkin) bit position function description n/a carrier frequency strobe writing to this address updates the carrier frequency control word from the holding register. control word 6: carrier phase strobe (synchronized to clkin) bit position function description n/a carrier phase strobe writing to this address updates the carrier phase offset control word with the value written to the phase offset (po) register. HSP50214B
3-49 control word 7: hb, fir configuration (synchronized to procclk) bit position function description 31-22 reserved reserved. 21 enable external filter sync 0- the syncin2 pin has no effect on the halfband and fir filters. 1- when the syncin2 pin is asserted, the filter control circuitry in the halfband filters, the fir, the res- ampler, and the discriminator are reset. syncin2 can be used to synchronize the computations of the filters in multiple parts for the alignment (see synchronization section). 20 halfband (hb) bypass 1- bypass halfband filters. 0- enable hb filters (at least one hb must be enabled). 19 hb5 enable 0- disables hb number 5 (the last in the cascade). 1- enables hb filter number 5. 18 hb4 enable setting this bit enables hb filter number 4. 17 hb3 enable setting this bit enables hb filter number 3. 16 hb2 enable setting this bit enables hb filter number 2. 15 hb1 enable setting this bit enables hb filter number 1. 14-11 fir decimation load decimation from 1-16, where 0000 = 16. bit 14 is the msb. 0001 - 1 1001 - 9 0010 - 2 1010 - 10 0011 - 3 1011 - 11 0100 - 4 1100 - 12 0101 - 5 1101 - 13 0110 - 6 1110 - 14 0111 - 7 1111 - 15 1000 - 8 0000 - 16 10 fir real/complex 0- complex filter. 1- dual real filters. 9 fir sym type 0- odd symmetry. 1- even symmetry. 8 fir symmetry 0- symmetric filters. 1- asymmetric filters. 7-0 fir taps number of taps in the fir filter. range is 1 to 255, where 0000000 is invalid. control word 8: agc configuration 1 (synchronized to procclk) bit position function description 31-30 reserved reserved. 29 sync agc updates to syncin2 when this bit is 1, the syncin2 pin loads the contents of the master registers into the agc accumulator. 28-16 threshold the magnitude measurement out of the cartesian to polar converter is subtracted from this value to get the gain error. a gain of 1.647 in the cartesian to polar conversion that must be taken into account when computing this threshold. these bits are weighted -2 2 down to 2 -10 . bit 28 is the msb. 15-12 loop gain 1 mantissa selected when agcgnsel = 1. these bits, mmmm, together with the exponent bits, eeee (11-8), set the loop gain for the agc loop. the gain adjustment per output sample is: 1.5db (threshold -[magnitude * 1.6]) 0.mmmm * 2 -(15 - eeee) where magnitude ranges from 0 to 1.414 and the threshold is programmed in bits 28-16. the decimal value for the mantissa is calculated as dec(mmmm)/16. bit 15 is the msb. 11-8 loop gain 1 exponent selected when agcgnsel = 1. these bits are eeee. see description of bits 15-12. bit 11 is the msb. 7-4 loop gain 0 mantissa selected when agcgnsel = 0. these bits are mmmm. see description for bits 15-12. same equations are used for loop 0. bit 7 is the msb. 3-0 loop gain 0 exponent selected when agcgnsel = 0. these bits are eeee. see description for bits 15-12. same equations are used for loop 0. bit 3 is the msb. HSP50214B
3-50 control word 9: agc configuration 2 (synchronized to procclk) bit position function description 31-28 reserved reserved. 27-16 upper limit maximum gain/minimum signal. the upper four bits are used for exponent; the remaining bits form the mantissa in the fractional offset binary: [eeeemmmmmmmm]. see the agc section for details. bit 27 is the msb. the gain is in db. g = (6.02)(eeee) + 20log 10 (1.0 + 0.mmmmmmmm) eeee = floor [log 2 (10 gain db/20 )] mmmmmmmm = floor [256(10 gain db/20 /2 eeee - 1)] 15-12 reserved reserved. 11-0 lower limit minimum gain/maximum signal. the upper four bits are used for exponent; the remaining bits form the mantissa in the fractional offset binary: [eeeemmmmmmmm]. see the agc section for details. bit 11 is the msb. the gain is in db. g = (6.02)(eeee) + 20log 10 (1.0 + 0.mmmmmmmm) eeee = floor [log 2 (10 gain db/20 )] mmmmmmmm = floor [256(10 gain db/20 /2 eeee - 1)] control word 10: agc sample gain control strobe (synchronized to procclk) bit position function description n/a sample agc gain level writing to this location samples the output of the agc loop filter to stabilize the value for p reading. control word 11: timing nco configuration (synchronized to procclk) bit position function description 31-6 reserved reserved. 5 enable external timing nco sync 0- syncin2 has no effect on the timing nco. 1- when syncin2 is asserted, the timing nco center frequency and phase are updated with the value loaded in their holding registers. if bit 0 of this word is set to 1, the phase accumulator feedback is also zeroed. 4-3 number of offset fre- quency bits 00 - 8 bits. 01 - 16. 10 - 24. 11 - 32. 2 enable offset frequency 0- zero offset frequency to adder. 1- enable offset frequency. 1 clear phase accumulator 0- enable accumulator. 1- zero feedback in accumulator. 0 timing nco phase accumulator load on update when this bit is set to 1, the p update to the timing nco frequency or an external timing nco load using syncin2 will zero the feedback of the phase accumulator as well as update the phase and fre- quency. this function can be used to set the nco to a known phase synchronized to an external event. control word 12: timing nco center frequency (synchronized to procclk) bit position function description 31-0 timing nco center frequency these bits control the frequency of the timing nco. the frequency range of the nco is from 0 to f re- samp where f resamp is the input sample rate to the resampling ?ter. the bits are computed by the equation: n =(f out /f resamp )*2 32 . bit 31 is the msb. this location is a holding register. after loading, a transfer to the active register is done by writing to control word 14 or by generating a syncin2 with control word 11, bit 5 set to 1. HSP50214B
3-51 control word 13: timing phase offset (synchronized to procclk) bit position function description 31-8 reserved reserved. 7-0 timing nco phase offset these bits are used to offset the phase of the timing nco. the range is 0 to 1 times the resampler input period interpreted either as t/2 (2s complement) or 0 to t (offset binary). bit 7 is the msb. this location is a holding register. after loading, a transfer to the active register is done by writing to control word 15 or by generating a syncin2 with control word 11, bit 5 set to 1. control word 14: timing frequency strobe (synchronized to procclk) bit position function description n/a timing frequency strobe writing to this address updates the active timing nco frequency register in the timing nco (see timing nco section). control word 15: timing phase strobe (synchronized to procclk) bit position function description n/a timing phase strobe writing to this address updates the active timing nco phase offset register in the timing nco (see tim- ing nco section). control word 16: resampling filter control (synchronized to procclk) bit position function description 31-12 reserved reserved. 11-4 re-sampler output pulse delay note: these bits program the delay between output samples when interpolating. the extra outputs can be delayed from 2 to 255 clocks from the ?st output. a delay of 2 equals 255 clocks of delay. a delay of 0 or 1 is an invalid mode. when interpolating by 2, one extra output is generated; when interpolating by 4, 3 extra outputs are generated. program by the equation (procclk/f out )-1. bit 11 is the msb. note: if less than 5 is programmed, there will not be sufficient time to fully update the output buffer. if less than 16 is programmed, the serial output may be preempted. this means that it won? finish and if the sync is programmed to follow the data, there may never be a sync. 3 re-sampler bypass 0- resampling filter enabled. a valid combination of bits 2-0 must also be selected. 1- resampling filter section (including interpolation halfband filters) is bypassed. 2-0 filter mode select; 2- hb2 enabled 1- hb1 enabled 0- re-sampler enabled 000- not valid. 001- re-sampler enabled. 010- halfband 1 enabled. 011- re-sampler and halfband filter 1 enabled. 100- not valid. 101- not valid. 110- both halfband filters enabled. 111- re-sampler and both halfband filters enabled. HSP50214B
3-52 control word 17: discriminator filter control, discriminator delay (synchronized to procclk) bit position function description 31-17 reserved reserved. 16-15 phase multiplier these bits program allow the phase output of the cartesian to polar converter to be multiplied by 1, 2, 4, or 8 (modulo 2 ) to remove phase modulation before the frequency is measured. 00- no shift on phase input to frequency discriminator. 01- shift phase input to frequency discriminator up 1 (one bit), discarding the msb and zero ?ling the lsb. 10- shift phase input to frequency discriminator up 2 (two) bits, discarding the msb and zero ?ling the lsb. 11- shift phase input to frequency discriminator up 3 (three) bits, discarding the msb and zero filling the lsb. 14 discriminator enable 0- disable discriminator. 1- enable discriminator. 13-11 discriminator fir decimation the decimation can be programmed from 1 to 8, where 000 = decimate by 8; 001 = decimate by 1; 010 = decimate by 2; 011 = decimate by 3; 100 = decimate by 4; 101 = decimate by 5; 110 = decimate by 6; and 111 - decimate by 7. 10 fir symmetry type 0- odd symmetry. 1- even symmetry. 9 fir symmetry 0- symmetric. 1- asymmetric. 8-3 number of fir taps number of fir taps from 1 to 63, where 00000 is not valid (00001 = 1 tap, 00010 = 2 taps, etc. up to 11111 = 63 taps). bit 8 is the msb. 2-0 discriminator delay sets the number of delays from 1 to 8 in the discriminator. set delay ddd to delay minus 1, where 000 repre- sents 1 delay; 001 represents 2 delays, 010 represents 3 delays, 011 represents 4 delays, 100 represents 5 delays, 101 represents 6 delays, 110 represents 7 delays, and 111 represents 8 delays. if ddd the decimal representation bits 2-0, then the discriminator a transfer function h(z) = 1-z -(ddd + 1) . control word 18: timing error preloads (synchronized to procclk) bit position function description 31-28 reserved reserved. 27-16 nco divide the re-sampler nco output is divided down by the value loaded into this register plus 1. load with a value that is one less than the desired period. bit 27 is the msb. 11-0 reference divide the reference clock is divided down by the value loaded into this register plus 1. load with a value that is one less than the desired period. bit 27 is the msb. a minimum preload of ??is required. control word 19: serial output order (synchronized to procclk) bit position function description 31 reserved reserved. 30-28 data source for serouta serial output a source. the serial data source is selected using table 12 (see output section). 27-25 data source for seroutb serial output b source. the serial data source is selected using table 12 (see output section). 24-21 number of serial word links in a chain this parameter determines the number of sersync pulses generated. it can be set from 1 to 7. if this parameter matches the number of serial words that are linked together to form a serial output chain, then there will be a sync pulse for every word in the serial output. in applications where a processor is receiv- ing the serial data, it may be desirable to have a single sersync pulse for the whole serial output chain, instead of a sersync for each word in the data chain. the processor then parses out the various data words. as an example, if the i and q are chained together and a single sersync pulse is generated for this serial output chain, no ambiguity exists in the processor about which two data samples (one from i and one from q) are related. 20-18 link following i data the serial data word, or link, following the i data word is selected using table 12 (see output section). HSP50214B
3-53 17-15 link following q data the serial data word, or link, following the q data word is selected using table 12 (see output section). 14-12 link following magnitude data the serial data word, or link, following the mag data word is selected using table 12 (see output section). 11-9 link following phase data the serial data word, or link, following the phas data word is selected using table 12 (see output section). 8-6 link following frequency data the serial data word, or link, following the freq data word is selected using table 12 (see output section). 5-3 link following agc level data the serial data word, or link, following the agc data word is selected using table 12 (see output section). 2-0 link following timing error data the serial data word, or link, following the timer data word is selected using table 12 (see output section). control word 20: buffer ram, direct parallel, and direct serial output configuration (synchronized with procclk) bit position function description 31-26 reserved reserved. 25 data source for least significant bytes of aout and bout output lsbytes, bits (7:0), of aout and bout can provide: 0- buffer ram mode output or, 1- parallel direct mode output. 24 buffered output mode interface buffered mode output interfaces to either: 0- 8-bit p (address = p asel(5:#); clk = p ram read). 1- 16-bit p (address = sel(2:0); clk = oebl). 23-22 aout direct parallel output mode data source the data word sent by the direct parallel output mode to aout is: 00- i data. (2? complement) 01- magnitude. (o; unsigned binary) 1x- frequency. (2? complement) 21-20 bout direct parallel output mode data source the data word sent by the direct parallel output mode to bout is: 00- q data (2? complement). 01- phase (2? complement). 1x- magnitude (o; unsigned binary). 19 serial output sync po- larity 0- normal sync mode (active high). 1- sync inverted (active low). 18 serial output clock polarity 0- output clock inverted rising edge aligns with data transitions. 1- output clock normal falling edge aligns with data transitions. 17 serial output sync po- sition 0- sync is asserted one bit time after the last bit of the serial word (late mode). 1- sync is asserted one bit time prior to the first bit of the serial word (early mode). 16-14 serial out clock divider 000- serial output at procclk/16. 001- serial output at procclk/8. 010- serial output at procclk/4. 011- serial output at procclk/2. 1xx- serial output at procclk rate. 13-12 i data serial output tag bit 00- no tag bit. lsb of word is passed. 01- 0 tag bit. lsb of word is set to zero. 1x- 1 tag bit. lsb of word is set to one. control word 19: serial output order (synchronized to procclk) (continued) bit position function description 0 1 HSP50214B
3-54 11-10 q data serial output tag bit (see i data serial output tag selection above). 9-8 magnitude data serial output tag bit (see i data serial output tag selection above). 7-6 phase data serial output tag bit (see i data serial output tag selection above). 5-4 frequency data serial output tag bit (see i data serial output tag selection above). 3-2 agc data serial out- put tag bit (see i data serial output tag selection above). 1-0 timing error data se- rial output tag bit (see i data serial output tag selection above). control word 21: buffer ram output control register (synchronized to procclk) bit position function description 31-16 reserved reserved. 15 output buffer mode 0- the output buffer operates in snapshot mode. 1- the output buffer operates in fifo mode. 14-12 fifo mode depth threshold in fifo mode, when the fifo depth reaches this threshold, an interrupt is generated and the ready ?g is asserted. the threshold may be set from 0 to 7. bit 14 is the msb. the interrupt is generated when the fifo depth reaches the threshold, as the fifo ?ls. 11-4 snapshot mode interval in snapshot mode, the interval between snapshots in the output sample times is determined by this 8- bit binary number, i.e. 256, (2 8 ), sample time counts between snapshot samples. program this parame- ter to 1 less than the desired interval. bit 11 is the msb. 3-0 snapshot mode number of samples in snapshot mode, the number of samples stored each time the snapshot interval counter times out is equal to the decimal version of this 4-bit number. the range is 1- 8. bit 3 is the msb. control word 22: buffer ram output fifo reset (synchronized to procclk) bit position function description n/a fifo reset a write to this address increments the output fifo ram address pointers to read = 111 and write = 000. control word 23: increment output fifo (synchronized to procclk) bit position function description n/a fifo strobe a write to this address increments the output fifo/buffer to the next sample set. control word 24: syncout strobe output pin (synchronized to clkin or procclk depending on programming in control word 0) bit position function description n/a syncout strobe a write to this address generates a one clock period wide strobe on the syncout pin that is synchro- nized to the clock. this strobe may be synchronized to clkin or procclk based on the programming of bit 3 of control word 0. control word 20: buffer ram, direct parallel, and direct serial output configuration (synchronized with procclk) (continued) bit position function description HSP50214B
3-55 control word 25: counter and accumulator reset (synchronized to both clkin and procclk) bit position function description n/a counter and accumulator reset a write to this address initializes the counters and accumulators for testing. items that are reset are: carrier nco. 1. loads phase offset <9:0> into register to be used for adding to accumulator. 2. enables feedback on the accumulator. cic filter 1. resets the decimation counter. 2. clears enables to cic. 3. clears accumulators in cic. 4. clears enable leaving cic. halfband filters 1. resets compute counter in halfband control. 2. resets read address for all halfband filters. 3. resets write address for all halfband filters. 4. clears input available strobe. 5. resets halfband control logic. 255 tap fir 1. resets fir read and write address pointers. 2. zeros coef?ient read address. agc loop 1. clears accumulator in loop ?ter. re-sampler and interpolation halfband filters. 1. resets counters for halfband addresses for writing. 2. resets output enable. 3. reset controller for re-sampler. timing nco 1. initializes counters for inserting extra pulses when interpolating halfbands are enabled. in the HSP50214B, a con?uration control word bit determines if a timing nco reset is executed. if con- trol word 27, bit 20 is set to a logic one, a reset will clear the feedback in the timing nco phase accumulator. if control word 27, bit 20 is zero, a reset will not clear the timing nco phase accu- mulator feedback, which is how the hsp50214 operated. discriminator 1. resets read and write address pointers. 2. zeros coef?ient read address. cartesian to polar coordinate counter 1. resets cordic counters (stops current computation). fifo control 1. resets decoder for controlling fifo. 2. resets write address for fifo. 3. clears rd and intrrpt. 4. resets ?epth?and ?ull??gs. 5. sets the empty ?g. 6. sets the read address to ?? write address to ?? snapshot control 1. zeros the group number. 2. load interval counter. 3. resets write address and read address for fifo. output serial control 1. reloads shift counter. 2. reloads ?umber of words?counter. 3. reloads counter for sync (for early or late). 4. reloads counter for dividing down serclk. 5. in the HSP50214B, the control word 25 reset signal is designed such that the front end reset is 10 clkin periods wide and the back end reset is 10 procclk periods wide. this guarantees that no enables will be caught in the pipelines. HSP50214B
3-56 control word 26: load agc gain (synchronized to procclk) bit position function description (15:12) (11:5) (5:0) eeee - agc exponent mmmmmmm - agc mantissa 000000 - not used agc load. writing to this location generates a strobe to load the agc loop accumulator with bits (15:5) to the master registers. these bits are loaded into the msbs of the agc loop ?ter accumulator. bits 15:12 are the exponent associated with the agc gain shifter, while bits 11:5 are the mantissa associated with the agc multiplier. the weighting of the agc mantissa is 01.mmmmmmm. when considering figure 23, the agc block diagram, note the mux between the register and the limiter in the agc loop ?ter. the agc load controls the mux. normally the mux would select the limiter output. when the agc load is asserted via the write command, the mux selects the write master registers for data input see table 20, figure 45 and the associated text of the data sheet for an ex- planation of how data is loaded into the master registers for use internal to the part. note that for the agc load only the lower 16 bits require data be valid to ensure a proper write of an agc value that will be loaded on write to control word 26. control word 27: test register (synchronized to clkin) bit position function description 31-25 reserved a ?ed value of 0000 000 is loaded here for normal operation. 24 ram test enable 0 = normal operation; 1 = ram test enabled. the b version includes test circuitry for the rom and ram blocks that was not present in the original release part. this circuitry must be disabled before loading the coefficient rams. this is done by setting bit 24 to zero. because the hsp50214 did not require a ?rite to control word 27 and the HSP50214B does require that control word 27, bit 24 be set to zero for normal operation, software that was written for the hsp50214 will require modification to work properly with the HSP50214B. 23 input level detector counter preload select 0 = the two lsbs of the interpolation period preload are set to zero. 1 = the two lsbs of the interpolation period preload are set to one. 22 syncin1 reset control 0: syncin1 causes only front end reset. 1: syncin1 causes front end and back end resets. 21 timing error input select 0 = operates as hsp50214. 1 = corrects an error in the 4 lsbs. 20 timing nco reset control select 0 = backend reset will not clear the timing nco phase accumulator feedback. 1 = backend reset clears the timing nco phase accumulator. 19 - 18 discriminator fir input 00 = 18 bits of delayed and subtracted (optionally shifted) phase. 01 = 18 bits of magnitude from coordinate converter. 1x = 18 bits of resampler/halfband ?er i output. 17 input level detector integration start select 0 = no external sync control of input end detector start/restart of integration period. 1 = syncin causes the input level detector to start/restart its integration period. 16 agc average control 0: agc settles to mean. 1: agc settles to median. 15 agc clear inhibit when set to zero, this bit will clear the agc loop ?ter accumulator on a syncin2 assertion or a write to cw25. when set to a one, a write to cw25 will not clear the agc loop ?ter accumulator. 14 q input to coordinate converter (see bits 19 - 15) 0 = i and q enabled to coordinate converter. i = q input to coordinate converter is zeroed. 13 coordinate converter input 0 = the resampler hb ?ter output is routed to coordinate converter. 1 = the output of 255 tap fir is routed to coordinate converter. 12-0 reserved a ?ed value 0 0010 0111 1000 [0278]hex is loaded here for normal operation. a xed value 0 0010 0111 1010 [027a]hex is loaded here for setting the sin/cos generator outputs to 7fff. HSP50214B
3-57 all intersil semiconductor products are manufactured, assembled and tested under iso9000 quality systems certi?ation. intersil semiconductor products are sold by description only. intersil corporation reserves the right to make changes in circuit design and/or spec ifications at any time with- out notice. accordingly, the reader is cautioned to verify that data sheets are current before placing orders. information furnished by intersil is b elieved to be accurate and reliable. however, no responsibility is assumed by intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of th ird parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of intersil or its subsidiari es. for information regarding intersil corporation and its products, see web site http://www.intersil.com control words 64-95: discriminator coefficient registers (synchronized to procclk) bit position function description 31-10 discriminator fir coefficient the discriminator fir coef?ients are 22-bit-twos complement. if the ?ter is symmetric, the coef?ients are loaded from the center coef?ient at address 64 to the last coef?ient. if the ?ter is asymmetric the coef?ients c 0 to c n are loaded with c 0 in address 64 up to 64+n, where n is number of asymmetric coef?ients. control words 128-255: 255 programmable coefficient registers bit position function description 31-10 programmable fir coefficient the programmable fir coef?ients are 22-bit-twos complement. if the ?ter is symmetric, the coef? cients are loaded from the center coef?ient at address 128 to the last coef?ient. if the ?ter is asym- metric the coef?ients c 0 to c n are loaded with c 0 in address 128 up to 128+n, where n is number of asymmetric coef?ients. real filters are computed as: xn-k+1 ck1 + xn-k+2 ck-2 + ... xnc0), where c0 is the coef?ient in address 128 and xo is the oldest data sample. complex ?ters outputs are computed as follows: xn is the most recent data sample. k is the number of samples = number of (complex) taps. c0_re is the coef?ient loaded into cw128. c0_im is the coef?ient loaded into cw129. the convolution starts with the oldest data, times the last complex coef?ient, and ends with the newest data, times the ?st complex coef?ient loaded. iout = (-xn-k+1_q * ck-1_im + xn-k+1_i * ck-1_re). + (-xn-k+2_q * ck-2_im + xn-1+2_i * ck-2_re). + ... + (-xn_q * c0_im + xn_i * c0_re). qout = (xn-k+1_i * ck-1_im + xn-k+1_q * ck-1_re). + (xn-k+2_i * ck-2_im + xn-1+2_q * ck-2_re). + ... + (xn_i * c0_im + xn_q * c0_re). HSP50214B
3-58 absolute maximum ratings thermal information supply voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +7.0v input, output or i/o voltage . . . . . . . . . . . . gnd-0.5v to v cc +0.5v esd classi?ation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . class 2 operating conditions voltage range . . . . . . . . . . . . . . . . . . . . . . . . . . . . +4.75v to +5.25v temperature range commercial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0 o c to 70 o c industrial. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40 o c to 85 o c input low voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0v to +0.8v input high voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2v to v cc input rise and fall time . . . . . . . . . . . . . . . . . . . . . . . . . 1v/ns max thermal resistance (typical, note 4) ja ( o c/w) mqfp package . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 maximum junction temperature . . . . . . . . . . . . . . . . . . . . . . .150 o c maximum storage temperature range . . . . . . . . . . -65 o c to 150 o c maximum lead temperature (soldering 10s) . . . . . . . . . . . . .300 o c (lead tips only) caution: stresses above those listed in ?bsolute maximum ratings may cause permanent damage to the device. this is a stress only rating and operatio n of the device at these or any other conditions above those indicated in the operational sections of this speci?ation is not implied. note: 4. ja is measured with the component mounted on an evaluation pc board in free air. dc electrical speci?ations v cc = 5 5%, t a = 0 o c to 70 o c, commercial; -40 o c to 85 o c, industrial parameter symbol test conditions min max units logical one input voltage v ih v cc = 5.25v 2.0 - v logical zero input voltage v il v cc = 4.75v - 0.8 v clock input high v ihc v cc = 5.25v 3.0 - v clock input low v ilc v cc = 4.75v - 0.8 v output high voltage v oh i oh = -400 a, v cc = 4.75v 2.6 - v output low voltage v ol i ol = +2.0ma, v cc = 4.75v - 0.4 v input leakage current i i v in = v cc or gnd, v cc = 5.25v -10 +10 a standby power supply current i ccsb v cc = 5.25v, outputs not loaded - 500 a output leakage current i o v in = v cc or gnd, v cc = 5.25v -10 +10 a operating power supply current i ccop clk = procclk = 52mhz, v in = v cc or gnd, v cc = 5.25v, outputs not loaded - 420 ma (note 5) input capacitance c in freq = 1mhz, v cc open, all measurements are referenced to device ground -8pf (note 6) output capacitance c out notes: 5. power supply current is proportional to operation frequency. typical rating for i ccop is 7ma/mhz. 6. capacitance t a =25 o c, controlled via design or process parameters and not directly tested. characterized upon initial design and at major pro- cess or design changes. ac electrical speci?ations v cc = 5 5%, t a = 0 o to 70 o c, commercial (note 7); -40 o c to 85 o c, industrial (note 7) parameter symbol 65mhz units min max clkin clock period t cp 15 - ns clkin high t ch 6-ns clkin low t cl 6-ns procclk period t pcp 18 - ns procclk high t pch 7-ns procclk low t pcl 7-ns refclk clock frequency f rcp - procclk/2 hz refclk high t rch 7-ns refclk low t rcl 7-ns setup time gainadj(2:0), in(13:0), eni, cof, cofsync, and syncin1 to clkin t ds 7-ns HSP50214B
3-59 hold time gainadj(2:0), in(13:0), eni, cof, cofsync, and syncin1 from clkin t dh 0-ns setup time agcgnsel, sof, mcsynci, sofsync, and syncin2 to procclk t dss 7-ns hold time agcgnsel, sof, mcsynci, sofsync, and syncin2 from procclk t dhs 0-ns setup time, a(2:0) to rising edges of wr t wsa 8-ns setup time, a(2:0) c(7:0) to rising edges of wr t wsc 10 - ns hold time, a(2:0) from rising edges of wr t wha 2-ns hold time, a(2:0) c(7:0) from rising edges of wr t whc 0-ns wr to clkin t wc 14 - ns (note 9) procclk to aout(15:0), bout (15:0), d a t ard y, serouta, seroutb, intrrp t do_out -8ns procclk to syncout t do_synci -8ns procck to mcsynco t do_synco -6ns procclk to serclk, sersync valid t dos -12ns wr high t wrh 15 - ns wr low t wrl 8-ns rd low t rl 20 - ns address setup to read low t as -3ns rd low to data valid t rdo -18ns rd high to output disable t rod -10ns (note 8) output enable time t oe -6ns output enable time - fifo read mode t oebl -15ns output disable time t od -8ns (note 8) output rise, fall time t rf -3ns (note 8) notes: 7. ac tests performed with c l = 40pf, i ol = 2ma, and i oh = -400 a. input reference level for clk is 2.0v, all other inputs 1.5v. test v ih = 3.0v, v ihc = 4.0v, v il = 0v. 8. controlled via design or process parameters and not directly tested. characterized upon initial design and at major process or design changes. 9. setup time required to ensure action initiated by wr will be seen by a particular clkin. ac test load circuit note: test head capacitance. ac electrical speci?ations v cc = 5 5%, t a = 0 o to 70 o c, commercial (note 7); -40 o c to 85 o c, industrial (note 7) (continued) parameter symbol 65mhz units min max equivalent circuit c l (note) i oh 1.5v i ol dut switch s1 open for i ccsb and i ccop s 1 HSP50214B
3-60 waveforms figure 50. timing relative to wr figure 51. timing relative to rd figure 52. output rise and fall times figure 53. timing relative to clkin figure 54. output enable/disable figure 55. timing relative to procclk figure 56. refclk wr c(0-7), a(0-2) t wsa t wha t wrh t wrl t wsc t whc t rdo c(0-7) t rod t rl rd a(2-0) t as t rf t rf 0.8v 2.0v clkin in(13:0), cof t ds t dh gainadj(2:0), eni, t cl t ch t cp cofsync, syncin1 t wc wr 1.7v 1.3v 1.5v 1.5v t oe t od outb(15:8), outb(7:0) oeah, oeal, oebh, oebl outa(15:8), outa(7:0), t oebl procclk agcgnsel, t dss t dhs sof, sofsync, t pcl t pch t do_ out, t do _ mcsynco, t pcp aout(15:0), bout(15:0), d a t ard y, t dos sersync syncout, serouta, seroutb t do_ synco intrrp, mcsync0, mcsync1 syncin2 t rcp t rch t rcl f rcp = i t rcp 2 t rcp t rcp HSP50214B
3-61 all intersil semiconductor products are manufactured, assembled and tested under iso9000 quality systems certi?ation. intersil semiconductor products are sold by description only. intersil corporation reserves the right to make changes in circuit design and/or spec ifications at any time with- out notice. accordingly, the reader is cautioned to verify that data sheets are current before placing orders. information furnished by intersil is b elieved to be accurate and reliable. however, no responsibility is assumed by intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of th ird parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of intersil or its subsidiari es. for information regarding intersil corporation and its products, see web site http://www.intersil.com sales of?e headquarters north america intersil corporation p. o. box 883, mail stop 53-204 melbourne, fl 32902 tel: (321) 724-7000 fax: (321) 724-7240 europe intersil sa mercure center 100, rue de la fusee 1130 brussels, belgium tel: (32) 2.724.2111 fax: (32) 2.724.22.05 asia intersil (taiwan) ltd. 7f-6, no. 101 fu hsing north road taipei, taiwan republic of china tel: (886) 2 2716 9310 fax: (886) 2 2715 3029 HSP50214B


▲Up To Search▲   

 
Price & Availability of HSP50214B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X